Vulnerability
CVE-2026-59171
JSON-java is a reference implementation of a JSON package in Java. From version 20150729 through 20260522, JSONTokener.nextSimpleValue can accumulate unbounded numeric tokens before JSONObject.stringToNumber passes them to BigInteger or BigDecimal conversion without a length limit. An application that parses attacker-controlled JSON or XML through JSONObject, JSONArray, or XML.toJSONObject can spend super-linear CPU time converting a sufficiently long numeric literal, blocking request-handling threads and causing denial of service. Strict mode and keep-strings settings in JSONParserConfiguration do not prevent the affected conversion path. Version 20260719 limits numeric conversion length.
175 advisories report this vulnerability, across 5 ecosystems.
Advisories in Wolfi
- CGA-2gxq-wf75-wpx4
- CGA-2pc4-qj36-gpvx
- CGA-4mgv-63x2-57m7
- CGA-5hfj-rvh8-9rxr
- CGA-73qr-hg2g-95f9
- CGA-77c7-788w-jjw3
- CGA-7vcp-5672-93q8
- CGA-8669-w3cc-mpw6
- CGA-88pr-96fq-6mxc
- CGA-8x6h-gh62-xjp7
- CGA-98wq-qg7r-5qhg
- CGA-9x9p-7xq7-wp53
- CGA-c4pj-c598-37rj
- CGA-c85c-r5fj-599m
- CGA-f64m-4cj6-55cf
- CGA-fgv9-gh4x-8ggx
- CGA-fgx6-h362-696h
- CGA-fj7j-jrg5-8q2m
- CGA-fwgq-3p53-q68h
- CGA-g255-492g-g268
- CGA-g2ch-6vr3-qc5j
- CGA-h62m-47qj-7qg7
- CGA-hg65-5q7g-62vx
- CGA-mqvp-qm4w-348p
- CGA-p97w-6f26-98cj
- CGA-q26w-8j24-53qj
- CGA-q3fw-6wgw-qj87
- CGA-qfvr-6wx8-jrwg
- CGA-qvvp-93g3-58f8
- CGA-r883-pchg-27cc
- CGA-rvpm-724r-m5hr
- CGA-v659-8853-9v6f
- CGA-x57v-296w-94qr
- CGA-x6cw-2vm5-53fh
References
- https://github.com/stleary/JSON-java/commit/703ac34a55400f9c50889e3d0c778b6d7962e81c
- https://github.com/stleary/JSON-java/commit/ab92bb9088a37f9e346cd1dda66f6a3c40a201e0
- https://github.com/stleary/JSON-java/commit/fce83c91bb229dde472283dea648a9a8955237fd
- https://github.com/stleary/JSON-java/pull/1065
- https://github.com/stleary/JSON-java/pull/1067
- https://github.com/stleary/JSON-java/releases/tag/20260719
- https://github.com/stleary/JSON-java/security/advisories/GHSA-ghc9-756g-vrcv