jsonptr is vulnerable to Denial of Service (DoS)
53
Medium Risk
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.
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.
jsonptr is vulnerable to Denial of Service (DoS) in versions 0.5.0 - 0.7.1.
Upgrade the jsonptr 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