CVE-2026-40612Published May 11, 2026 · May 11Updated Oct 28
jq: Stack overflow via unbounded recursion in jv_contains
jqlang jq
Medium5.4
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| jqlang jq |
| No fix yet |
Original description
jq is a command-line JSON processor. In 1.8.1 and earlier, jv_contains recurses into nested arrays/objects with no depth limit. With a sufficiently nested input structure (built programmatically with reduce, since the JSON parser caps at depth 10000), the C stack is exhausted.
From the CVE record · GitHub_M