Skip to main content

JSON-java EUVDEUVD-2026-118487

| CVE-2026-59171 MEDIUM
Uncontrolled Resource Consumption (CWE-400)
2026-11-06 GitHub_M GHSA-ghc9-756g-vrcv
5.9
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Send oversized numeric JSON/XML body
  2. Delivery
    Reaches org.json JSONObject/JSONArray/XML.toJSONObject parser
  3. Exploit
    Unbounded token passed to BigInteger/BigDecimal
  4. Execution
    Super-linear CPU blocks request thread
  5. Impact
    Concurrent requests exhaust thread pool, denial of service

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource consumption limits
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The application must (1) use the org.json / stleary json-java library rather than another JSON parser, and (2) pass attacker-controlled input into new JSONObject(String), new JSONArray(String), or XML.toJSONObject(String) - all three entry points are confirmed affected. No authentication is required (PR:N) and no user interaction (UI:N). Critically, the JSONParserConfiguration withStrictMode(true) and withKeepStrings(true) options do NOT prevent the conversion and provide no mitigation. Limiting factors: impact is availability-only (thread/CPU exhaustion, no data compromise); exploitation depends on the absence of an upstream request-body size cap - Spring Boot applies no default size limit to application/json bodies and nginx's default 1 MB client_max_body_size passes the ~488 KB payload, so a tight body-size limit meaningfully reduces exposure. Per the advisory, updating to 20260719 (which caps numeric conversion length) is the fix.

Impact

This is a genuine but moderate-priority denial-of-service issue, not a high-impact RCE or data-exposure flaw. The CVSS 3.1 vector (AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H, base 5.9) correctly scopes it: network-reachable and unauthenticated (PR:N) but with high attack complexity (AC:H) and availability-only impact (C:N/I:N, A:H). The AC:H rating reflects deployment preconditions outside the attacker's control, not a race or timing condition - per the GHSA, exploitation requires the target to use org.json specifically (Spring Boot defaults to Jackson) and to have passed attacker-controlled input to JSONObject/JSONArray/XML.toJSONObject. The vuln.today Decision label is 'this_month' (not act_now/emergency), consistent with a serious-but-not-urgent DoS. No CISA KEV listing and no EPSS score were supplied; absence of EPSS/KEV here is not evidence of safety, only missing signals. A reporter-reproduced public PoC exists in the GHSA advisory (verified against json-20260522.jar), which raises practical risk above a theoretical finding. Net: treat as a real but schedulable fix - prioritize if your Java services parse untrusted JSON/XML with org.json and lack a strict request-body size cap.

Exploit ScenarioDerived

An attacker sends a single ~488 KB HTTP JSON body containing a ~500,000-digit numeric literal to an endpoint that parses it with org.json's new JSONObject(requestBody); the super-linear BigInteger conversion blocks the handling thread for roughly 3 seconds, and ~200 concurrent such requests exhaust a default Tomcat thread pool, stalling legitimate traffic. A working PoC reproducing this against json-20260522.jar is published in the vendor's GHSA advisory. High attack complexity reflects that the target must specifically use org.json on attacker-controlled input, not a hard-to-trigger race.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.6% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 06, 2026

Denial of service in JSON-java (org.json) versions 20150729 through 20260522 lets remote attackers block request-handling threads by submitting JSON or XML containing an extremely long numeric literal; conversion through BigInteger or BigDecimal consumes super-linear CPU time, and the published reproduction held a thread for about 3 seconds with a roughly 488 KB body. Exploitation requires the target application to use org.json and to pass attacker-controlled input to new JSONObject(String), new JSONArray(String), or XML.toJSONObject(String), conditions that raise attack complexity to High (AC:H), but no authentication or user interaction is needed, and neither withStrictMode(true) nor withKeepStrings(true) prevents the conversion. A publicly posted proof-of-concept reproduces the thread blockage against json-20260522.jar, while no active exploitation or CISA KEV entry is confirmed in the supplied intelligence; impact is availability-only.

RemediationAI

Upgrade to JSON-java 20260719, the vendor release that limits numeric conversion length (https://github.com/stleary/JSON-java/releases/tag/20260719); the linked advisory is https://github.com/stleary/JSON-java/security/advisories/GHSA-ghc9-756g-vrcv, and the fix is visible in PRs https://github.com/stleary/JSON-java/pull/1065 and https://github.com/stleary/JSON-java/pull/1067 plus commits 703ac34a55400f9c50889e3d0c778b6d7962e81c, ab92bb9088a37f9e346cd1dda66f6a3c40a201e0, and fce83c91bb229dde472283dea648a9a8955237fd, which cap numeric conversion at 1,000 characters in JSONObject.stringToValue and XML.stringToValue. The advisory identifies updating as the fix, and the parser configuration options withStrictMode(true) and withKeepStrings(true) do not mitigate the conversion path. If upgrading cannot be done immediately, enforce a tight request-body size limit for application/json and XML endpoints at the reverse proxy or application framework, since the reproduction used a roughly 488 KB body that passes nginx's default 1 MB client_max_body_size and Spring Boot applies no default size limit to application/json bodies, and reject numeric tokens longer than 1,000 characters before they reach org.json; the trade-off is that tight body limits or token rejection may refuse legitimately large JSON documents or large numeric values. Updating remains the only complete fix per the vendor advisory.

Affected VersionsENISA

JSON-java 20150729, < 20260719

Affected Packages

maven org.json:json fix: 20260719
euvd json_java fix: 20260719

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in maven, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The flaw is uncontrolled resource consumption (CWE-400, with the advisory also citing CWE-770) in the org.json reference implementation. JSONTokener.nextSimpleValue accumulates characters into a StringBuilder without any length cap until a structural JSON delimiter is reached, and JSONObject.stringToNumber then passes the full token to new BigInteger(val) or new BigDecimal(val) with no size guard. BigInteger(String) construction uses Karatsuba multiplication and has roughly O(n^1.585) cost, so a 100,000-digit literal took about 120 ms while a 1,000,000-digit literal took about 12 seconds in the advisory reproduction; the decimal path reached through a dot or exponent is equally affected. The same conversion path is reached from new JSONObject(String), new JSONArray(String), and XML.toJSONObject(String), and JSONParserConfiguration withStrictMode(true) or withKeepStrings(true) does not check or limit the numeric token. The advisory distinguishes this from CVE-2023-5072, which added a StackOverflowError catch for deeply nested JSON structures, and states that the numeric-length issue has existed since BigInteger support was introduced in 20150729. The supplied CPE cpe:2.3:a:stleary:json-java:*:*:*:*:*:*:*:* is a wildcard entry, while the advisory narrows the vulnerable range to 20150729 through 20260522 and the fixed release to 20260719.

Know when Java gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 5.9 MEDIUM
AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 5.9 MEDIUM

Network-reachable and unauthenticated (AV:N/PR:N); AC:H because exploitation depends on the target using org.json on untrusted input; availability-only impact (A:H, C:N/I:N).

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Red Hat 5.9 MEDIUM

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

2
Patch available
Nov 06, 2026 - 21:03 EUVD
CVE Published
Nov 06, 2026 - 20:12 cve.org
MEDIUM 5.9

DescriptionCVE.org

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.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 108 maven packages depend on org.json:json (37 direct, 71 indirect)

Ecosystem-wide dependent count for version 20150729.

Threat Intelligence Overview

EPSS Score
0.6%
Top 54% exploitable
Prevalence
High
widely-used Java JSON reference library, extremely common Maven dependency
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.6%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

31
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

More in Java

View all
CVE-2012-4681 CRITICAL POC
9.8 Aug 28

Oracle Java SE 7 Update 6 and earlier contains multiple sandbox bypass vulnerabilities via the ClassFinder and forName m

CVE-2015-7450 CRITICAL POC
9.8 Jan 02

Remote code execution in IBM Sterling B2B Integrator, Sterling Integrator, and Tivoli Common Reporting allows unauthenti

CVE-2013-2465 CRITICAL POC
9.8 Jun 18

Java Runtime Environment sandbox bypass via incorrect image channel verification in 2D component allows remote unauthent

CVE-2011-3544 CRITICAL POC
9.8 Oct 19

Oracle Java SE JDK/JRE 7 and 6 Update 27 and earlier allows remote code execution with complete system compromise throug

CVE-2010-1871 HIGH POC
8.8 Aug 05

JBoss Seam 2 in Red Hat JBoss EAP 4.3.0 fails to sanitize JBoss Expression Language inputs, allowing remote attackers to

CVE-2012-1723 CRITICAL POC
9.8 Jun 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 update 4 and earlier, 6 up

CVE-2013-0422 CRITICAL POC
9.8 Jan 10

Multiple vulnerabilities in Oracle Java 7 before Update 11 allow remote attackers to execute arbitrary code by (1) using

CVE-2012-0507 CRITICAL POC
9.8 Jun 07

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 2 and earlier, 6 Up

CVE-2015-4852 CRITICAL POC
9.8 Nov 18

The WLS Security component in Oracle WebLogic Server 10.3.6.0, 12.1.2.0, 12.1.3.0, and 12.2.1.0 allows remote attackers

CVE-2012-5076 CRITICAL POC
9.8 Oct 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 7 and earlier allow

CVE-2017-3066 CRITICAL POC
9.8 Apr 27

Remote unauthenticated attackers can execute arbitrary code on Adobe ColdFusion servers through Java deserialization fla

CVE-2012-0391 CRITICAL POC
9.8 Jan 08

The ExceptionDelegator component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy