CVE-2026-59171
MEDIUM 5.9CVSS 3.1JSON-java: JSONTokener Has Unbounded Numeric String Resource-Exhaustion DoS
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.
- Published
- 6 Nov 2026
- Last modified
- 12 Nov 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-400CWE-770
- Also known as
- GHSA-ghc9-756g-vrcv
- Sources
- NVDJSONOSV GHSA-ghc9-756g-vrcvJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Maven | org.json:json | >= 20150729, < 20260719 | 20260719 |
References
- https://github.com/stleary/JSON-java/commit/703ac34a55400f9c50889e3d0c778b6d7962e81c · WEB
- https://github.com/stleary/JSON-java/commit/ab92bb9088a37f9e346cd1dda66f6a3c40a201e0 · WEB
- https://github.com/stleary/JSON-java/commit/fce83c91bb229dde472283dea648a9a8955237fd · WEB
- https://github.com/stleary/JSON-java/pull/1065 · WEB
- https://github.com/stleary/JSON-java/pull/1067 · WEB
- https://github.com/stleary/JSON-java/releases/tag/20260719 · WEB
- https://github.com/stleary/JSON-java/security/advisories/GHSA-ghc9-756g-vrcv · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-59171 · ADVISORY
- https://github.com/stleary/JSON-java · PACKAGE
History
- 25 Nov 2026 21:23 UTC · NVD: first stored (published 6 Nov 2026)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 9 Nov 2026)