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.
Published: 2026-11-06
Score: 5.9 Medium
EPSS: n/a
KEV: No
Impact: Denial of Service
Action: Patch Library
AI Analysis

Impact

The JSON-java library processes numeric strings without a length limit during JSONTokener.nextSimpleValue. When an attacker supplies a very long numeric literal, the library consumes large amounts of CPU time during conversion to BigInteger or BigDecimal. This super‑linear resource consumption can block request‑handling threads, rendering the application unresponsive. The weakness is classified as unbounded resource consumption (CWE-400) and unbounded memory allocation (CWE-770).

Affected Systems

The vulnerability exists in the stleary:JSON-java package from versions 20150729 through 20260522. Applications that use JSONObject, JSONArray, or XML.toJSONObject to parse attacker‑controlled JSON or XML may be impacted. The issue is resolved in release 20260719, which imposes a numeric conversion length limit.

Risk and Exploitability

The CVSS score of 5.9 indicates moderate severity; the EPSS score is not available, and it is not listed in CISA’s KEV catalog. Attackers can trigger the DoS by supplying crafted JSON or XML over any channel that the application processes. The vulnerability can be exploited remotely if the application accepts user input from network services, web APIs, or files. Downgrading or restricting numeric literals in the payload can mitigate exploitation until the library is updated.

Generated by OpenCVE AI on November 6, 2026 at 21:37 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the JSON-java library to version 20260719 or later, which limits the length of numeric literals during conversion.
  • If an upgrade is not immediately possible, implement pre‑processing logic to validate and reject numeric strings that exceed a safe threshold before passing them to JSONTokener.
  • Consider limiting the size of incoming JSON or XML payloads at the application boundary, such as by enforcing maximum request body size or applying rate limiting, to reduce the window for exploitation.

Generated by OpenCVE AI on November 6, 2026 at 21:37 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 06 Nov 2026 22:00:00 +0000

Type Values Removed Values Added
First Time appeared Stleary
Stleary json-java
Vendors & Products Stleary
Stleary json-java

Fri, 06 Nov 2026 20:30:00 +0000

Type Values Removed Values Added
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.
Title JSON-java: JSONTokener Unbounded Numeric String Resource-Exhaustion DoS
Weaknesses CWE-400
CWE-770
References
Metrics cvssV3_1

{'score': 5.9, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H'}


Subscriptions

Stleary Json-java
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-11-06T20:12:34.624Z

Reserved: 2026-07-02T16:50:27.888Z

Link: CVE-2026-59171

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-11-06T21:17:09.390

Modified: 2026-11-06T21:17:09.390

Link: CVE-2026-59171

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-06T21:45:10Z

Weaknesses
  • CWE-400

    Uncontrolled Resource Consumption

  • CWE-770

    Allocation of Resources Without Limits or Throttling