jsonptr is vulnerable to Denial of Service (DoS)
53
CVE Score
Medium
Denial of Service (DoS)
The delete module resolves a JSON Pointer's final token to an array index and passes it straight to the underlying vector removal. When that token is the RFC 6901 - token or a numeric index equal to the array length, the index equals the length and the removal call panics instead of reporting a miss. Code that deletes JSON Pointers built from untrusted input, such as a JSON Patch remove operation, therefore crashes on input like /- against any array. The fix computes the index with an exclusive bound helper so an out-of-range index returns None and leaves the document unchanged.
Upgrade the jsonptr library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and you delete JSON Pointers built from untrusted input, for example JSON Patch remove operations.
0.5.0 - 0.7.1
Fixed in 0.8.0jsonptr is vulnerable to Denial of Service (DoS) in versions 0.5.0 - 0.7.1.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.