Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-110974 Overview
CVE-2026-110974 is an uncontrolled recursion vulnerability [CWE-674] in the com.vaadin.external.google:android-json library, version 0.0.20131108.vaadin1. The parser's JSONTokener.nextValue() method recursively invokes readArray() and readObject(), which in turn call nextValue() again, with no depth limit enforced. A deeply nested JSON document of roughly 20 KB, parsed on a default thread stack, triggers a raw java.lang.StackOverflowError from the JSONArray and JSONObject constructors instead of a controlled JSONException. Any application that parses untrusted JSON input through this library can have the parsing thread terminated by a remote attacker.
Critical Impact
Remote attackers can send a small, deeply nested JSON payload to crash the thread parsing untrusted input, producing a denial-of-service condition. The artifact is unmaintained and no fixed version will be released.
Affected Products
- com.vaadin.external.google:android-json version 0.0.20131108.vaadin1
- Applications bundling the Vaadin repackage of the 2013 third-party org.json classes
- Downstream services that parse untrusted JSON through this Maven artifact
Discovery Timeline
- 2026-10-22 - CVE-2026-110974 published to the National Vulnerability Database
- 2026-10-22 - Last updated in NVD database
Technical Details for CVE-2026-110974
Vulnerability Analysis
The flaw sits in the JSON tokenizer's control flow. JSONTokener.nextValue() dispatches to readArray() or readObject() whenever it encounters [ or {. Those readers recursively call nextValue() for each child element, consuming one JVM stack frame per nesting level. The library performs no depth tracking and no bounds check.
An attacker crafts a payload such as [[[[...]]]] or {"a":{"a":{"a":...}}} with a few thousand opening brackets. On a default thread stack, roughly 20 KB of input is sufficient to exhaust the stack. The constructors of JSONArray and JSONObject propagate a raw java.lang.StackOverflowError, which most Java applications do not catch because it is an Error rather than a JSONException.
The outcome is thread termination inside the parser. Services that handle JSON on worker threads lose that worker, and repeated requests can exhaust pool capacity, degrading or stopping availability.
Root Cause
The root cause is uncontrolled recursion [CWE-674] in a hand-written recursive descent parser that lacks a configurable depth ceiling. The artifact is a 2013 repackage of third-party org.json classes published once by Vaadin and never maintained, so the defect has persisted unpatched.
Attack Vector
Exploitation requires only the ability to submit JSON to an endpoint that uses the vulnerable library. No authentication, user interaction, or special privileges are required. Any HTTP API, message consumer, or configuration loader that passes untrusted bytes to new JSONObject(...) or new JSONArray(...) is reachable.
The vulnerability mechanism is parser recursion without a depth limit. See the Apache Maven Repository listing for the affected artifact.
Detection Methods for CVE-2026-110974
Indicators of Compromise
- Repeated java.lang.StackOverflowError stack traces originating in org.json.JSONTokener.nextValue, JSONTokener.readArray, or JSONTokener.readObject.
- Abrupt termination of request-handling threads immediately after processing JSON input.
- Spikes in HTTP 5xx responses or dropped connections correlated with inbound requests containing deeply nested JSON bodies.
Detection Strategies
- Perform software composition analysis (SCA) across build artifacts and container images to locate com.vaadin.external.google:android-json:0.0.20131108.vaadin1 in direct and transitive dependencies.
- Inspect web application firewall logs for request bodies with unusually high counts of consecutive [ or { characters relative to payload size.
- Instrument JVM crash telemetry to flag any StackOverflowError whose stack frames include org.json.JSON* classes.
Monitoring Recommendations
- Alert on recurring StackOverflowError events tied to parser classes in application performance monitoring (APM) tools.
- Track per-endpoint JSON payload nesting depth and reject or log requests exceeding a safe threshold such as 64 levels.
- Monitor worker-thread pool saturation and request latency on services that accept external JSON.
How to Mitigate CVE-2026-110974
Immediate Actions Required
- Inventory all applications and dependencies for com.vaadin.external.google:android-json:0.0.20131108.vaadin1 using Maven, Gradle, or SBOM tooling.
- Replace the artifact with org.json:json version 20231013 or later, which enforces a nesting depth limit.
- Enforce request size and JSON depth limits at the reverse proxy, API gateway, or WAF layer until replacement is complete.
Patch Information
No fixed version of com.vaadin.external.google:android-json will be released. The maintainer guidance is to replace the artifact with a maintained org.json implementation that limits nesting depth, specifically org.json:json version 20231013 or later. See the Apache Maven Repository for the unmaintained artifact listing.
Workarounds
- Wrap all calls to new JSONObject(input) and new JSONArray(input) with input size and depth validation performed before parsing.
- Add a defensive catch (StackOverflowError e) guard around parser invocations to prevent thread death, while treating this as a stopgap only.
- Route untrusted JSON through a hardened parser such as Jackson or Gson configured with StreamReadConstraints or equivalent depth limits.
# Example Maven exclusion and replacement
mvn dependency:tree | grep android-json
# Then in pom.xml, exclude the vulnerable artifact and add:
# <dependency>
# <groupId>org.json</groupId>
# <artifactId>json</artifactId>
# <version>20231013</version>
# </dependency>
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

