CVE-2026-59171
JSON-java is a reference implementation of a JSON package in Java. …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/stleary/JSON-java/commit/703ac34a55400f9c50889e3d0c778b6d7962e81c
- github.com/stleary/JSON-java/commit/ab92bb9088a37f9e346cd1dda66f6a3c40a201e0
- github.com/stleary/JSON-java/commit/fce83c91bb229dde472283dea648a9a8955237fd
- github.com/stleary/JSON-java/pull/1065
- github.com/stleary/JSON-java/pull/1067
- github.com/stleary/JSON-java/releases/tag/20260719
- github.com/stleary/JSON-java/security/advisories/GHSA-ghc9-756g-vrcv
- nvd.nist.gov/vuln/detail/CVE-2026-59171
- nvd.nist.gov/vuln/detail/CVE-2026-59171
- cve.org/CVERecord?id=CVE-2026-59171
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.