Maven
CVE-2026-59171
JSON-java: JSONTokener Has Unbounded Numeric String Resource-Exhaustion DoS
- Severity
- Medium 5.9
- Published
- 9 Nov 2026
- Last changed
- 9 Nov 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 20260719
- Exploit chance
- 0.6% in the next 30 daysHigher than 51% of CVEs. EPSS by FIRST, 24 Nov 2026
- Attack
- Over the network · Only under certain conditions · No login needed · No user action needed
- Attacker can
- Take it down
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H- Also known as
- GHSA-ghc9-756g-vrcv
- Sources
- OSV.dev and GitHub
Description
JSON-java version 20260522 contains an unguarded path from an HTTP request body to unbounded BigInteger and BigDecimal construction. JSONTokener.nextSimpleValue() accumulates numeric characters into a StringBuilder with no length cap, then passes the full string to JSONObject.stringToNumber(), which calls new BigInteger(val) or new BigDecimal(val) directly. Both constructors have polynomial time complexity (O(n^1.585) for BigInteger).
A 488 KB JSON body — well within nginx's default 1 MB body-size limit — contains a 500,000-digit numeric literal that blocks the handling thread for approximately 3 seconds. Spring Boot has no default size limit for application/json request bodies. No parser configuration option (withStrictMode, withKeepStrings) prevents this. All three primary entry points are affected: new JSONObject(String), new JSONArray(String), and XML.toJSONObject(String).
Affected software
| Software | Affected versions |
|---|---|
org.json:jsonMaven · osv:Maven:org.json:json |
|
About org.json:json
This is the only vulnerability in org.json:json in our list.
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-59171
- GitHub Advisory Database https://github.com/advisories/GHSA-ghc9-756g-vrcv