cvelo
P3 · MediumCVSS 5.9EPSS 0.6%

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

  • CVE-2026-59171
  • GHSA-ghc9-756g-vrcv
  • EUVD-2026-118487

Description

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.

Text from the CVE.org record.

Affected

  • stleary JSON-java

    • >= 20150729, < 20260719
  • org.json:jsonMaven

    • from 20150729, fixed in 20260719

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.