json is vulnerable to Denial of Service (DoS)
59
CVE Score
Medium
Denial of Service (DoS)
JSONTokener accumulates numeric characters from parsed JSON or XML into a string with no length limit and passes the full value to new BigInteger or new BigDecimal. A single request carrying a very large numeric literal can block the processing thread for seconds and exhaust the request thread pool. When untrusted input reaches JSONObject, JSONArray, or XML.toJSONObject, this causes uncontrolled resource consumption, and existing parser options such as strict mode and keep-strings do not prevent it. The fix adds a configurable maximum length that is enforced during parsing and during BigDecimal-to-BigInteger conversion before oversized values are materialized.
Upgrade the org.json:json library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and you parse untrusted input using JSONObject, JSONArray, or XML.toJSONObject.
20070829 - 20260522
Fixed in 20260719json is vulnerable to Denial of Service (DoS) in versions 20070829 - 20260522.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.