Intel

AIKIDO-2026-57390

jsonptr is vulnerable to Denial of Service (DoS)

Denial of Service (DoS) Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published 4 days ago

53

Medium Risk

This Affects:

RUSTjsonptr
0.5.0 - 0.7.1
Fixed in 0.8.0
Are you affected? Scan for Free

TL;DR

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.

Who does this affect?

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.

Background info

jsonptr is vulnerable to Denial of Service (DoS) in versions 0.5.0 - 0.7.1.

How to fix this

Upgrade the jsonptr library to the patch version.