JSON-java: JSONTokener Has Unbounded Numeric String Resource-Exhaustion DoS
Affected
| Package | Affected versions | Fixed in |
|---|---|---|
| maven:org.json:json | >= 20150729, < 20260719 | 20260719 |
1. Executive Summary 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'…
Read on GitHub Advisory Database
On 11/10/2026, 06:12 AM, GitHub Advisory Database published "JSON-java: JSONTokener Has Unbounded Numeric String Resource-Exhaustion DoS" (type: Advisory). Severity is "Medium" (medium). Related technologies: Java, nginx. CVE: CVE-2026-59171.