jsonschema is vulnerable to Improper Input Validation
59
Medium Risk
The jsonschema crate validates numeric instances against minimum, maximum, and their exclusive variants. When the arbitrary-precision feature is enabled, integer instances just outside the i64/u64 range are compared against these bounds after a lossy conversion to f64, so a value one step beyond the limit rounds onto the boundary and is treated as satisfying it. An instance that actually violates a numeric bound can therefore be accepted as valid, bypassing the schema constraint on untrusted input. The fix compares such out-of-range integers exactly using big-integer arithmetic instead of f64 rounding.
You are affected if you are using a version that falls within the vulnerable range and the arbitrary-precision feature is enabled.
jsonschema is vulnerable to Improper Input Validation in versions 0.35.0 - 0.47.0.
Upgrade the jsonschema library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant