Shellfeed logo Shellfeed

CVE-2026-59171 · MEDIUM (CVSS 5.9)

Summary: JSON-java: JSONTokener Unbounded Numeric String Resource-Exhaustion DoS

EPSS: 0.6% probability of exploitation in the next 30 days (percentile 46.7).

Details

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.

Severity

MEDIUM (CVSS 5.9) — vector CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected packages

  • Maven org.json:json [20150729 – 20260719]
  • GIT github.com/stleary/json-java [b0191a6acf6024b6b3efbd48dba8826ca79b950d – 1795e8cf26229229e7ab6fe4aeab0f51ffecda5a]

References

Posts about CVE-2026-59171