[ CVE-2026-59171 · Published 6 Nov 2026 ]

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

CVSS 5.9 EPSS <1% Fix available

[ Description ]Official 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.

[ Fixes ]How to fix it

  • org.json:json 20260719Fixed version · GitHub Advisories · maven package org.json:json: upgrade to 20260719 or later (affected >= 20150729, < 20260719)

Fixed versions

  • stleary JSON-java: upgrade to 20260719 or laterEarlier versions are listed as affected

From the affected-version ranges in the CVE record. Check the vendor's advisory for the exact release for your platform or branch.

Vendor advisories and patches

[ Packages ]Affected open-source packages

  • org.json:json mavenAffected >= 20150729, < 20260719 · fixed in 20260719 · GHSA-ghc9-756g-vrcv