CVE-2026-59171
JSON-java: JSONTokener Unbounded Numeric String Resource-Exhaustion DoS
- Severity
- medium CVSS 5.9 (v3.1)
- Affects
- JSON-java · stleary
- Weakness
- CWE-400: Uncontrolled Resource Consumption
- Published
- 6 November 2026 by GitHub_M
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.
Our coverage
We have not written about this one. Know why it matters? Send a tip.