Resource exhaustion in JSON-java - CVE-2026-59171
Published: August 5, 2026
Vulnerability details
The vulnerability allows a remote attacker to cause a denial of service.
The vulnerability exists due to uncontrolled resource consumption in JSONTokener.nextSimpleValue() and JSONObject.stringToNumber() when parsing oversized numeric literals from user-supplied JSON or XML input. A remote attacker can send a specially crafted request body containing an excessively long numeric value to cause a denial of service.
All three primary parsing entry points are affected: new JSONObject(String), new JSONArray(String), and XML.toJSONObject(String).