Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend crafted deeply-nested JSON over HTTP
-
DeliveryApplication passes body to pick/filter stream
-
Exploitfilter-base.js recomputes path on each nesting level
-
ExecutionO(D²) stack.join() calls saturate Node.js thread
-
PersistEvent loop blocked
-
ImpactService unavailable to all concurrent users
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V2 - Validation and Business Logic Algorithmic complexity limits
|
| Exploitation Conditions | Exploitation requires that the target application uses stream-json's pick, ignore, filter, or replace path filters (from filter-base.js) - specifically not the streamArray, streamObject, or streamValues APIs - and that the application passes attacker-controlled JSON input to those filters without a prior depth check. This covers the library's primary documented use case, including the flagship README example pick({filter: 'data'}). The attack is depth-triggered, not byte-volume-triggered, so a very small document (kilobytes) can cause disproportionate CPU consumption. No authentication or special configuration is required beyond the ability to send JSON to an endpoint backed by these filters. Applications that only use streamArray/streamObject/streamValues, or that pre-validate JSON depth before processing, are not exploitable. Applications operating exclusively on trusted, internally-generated JSON also face no realistic risk. |
| Impact | The NVD-provided CVSS vector CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H scores 6.2 (Medium), but the AV:L attribution is inconsistent with the primary documented threat model: an application receiving untrusted JSON over a network and passing it to a stream-json filter. For such deployments the realistic attack vector is AV:N, yielding a High score. The AC:L and PR:N metrics are accurate - no special complexity and no authentication are required to submit a crafted deeply-nested JSON body. EPSS data is not available in the input; given the absence of a KEV listing and the narrow deployment surface (Node.js streaming-JSON consumers), widespread automated exploitation is unlikely in the near term. However, the availability of a working PoC in the public GHSA advisory lowers the bar for reproduction. Real-world priority depends heavily on deployment context: a public API endpoint that pipes raw request bodies through a pick or filter stream is concretely exploitable; batch pipelines consuming trusted internal JSON face negligible risk. The quadratic nature of the DoS means even moderately deep documents (depth ~2000 in the PoC) produce seconds-long event-loop stalls in Node.js, which is a single-threaded runtime - making this an effective amplification primitive against network-facing services. |
| Exploit ScenarioDerived | An attacker submits a crafted HTTP request body containing a small but deeply nested JSON document (e.g., {'meta':{'meta':{...}}} to depth 2000, roughly 24 KB) to a Node.js web service that pipes the request body through stream-json's pick({filter: 'data'}) filter. The filter recomputes the full path string at each of the ~2000 nesting levels, accumulating O(D²) ≈ 4,000,000 string join operations, blocking the Node.js event loop for several seconds. Repeating this at modest request rates starves all concurrent connections, producing effective denial of service. A proof-of-concept script demonstrating this behavior is published in GHSA-528h-pc64-c93x. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 03, 2026
Quadratic algorithmic complexity (O(D²)) in stream-json's pick, ignore, filter, and replace path filters allows an attacker supplying a small, deeply-nested JSON document to block the Node.js event loop for seconds to minutes, effectively causing denial of service. The root cause is that filter-base.js recomputes the full dot-separated path string by rejoining the entire nesting stack on every checkable token - so a document of depth D incurs O(D²) CPU work regardless of byte size. All applications passing untrusted or large JSON through a string or RegExp filter (including the library's flagship README example pick({filter: 'data'})) are affected in versions up to and including 3.4.0. A proof-of-concept is included in the published GHSA advisory; no public exploit or CISA KEV listing has been identified at time of analysis.
RemediationAI
Upgrade stream-json to version 3.5.0 or later, which introduces a maxDepth option (default: 1024) that throws a RangeError when input nesting exceeds the limit, bounding worst-case complexity. The patch commit is available at https://github.com/uhop/stream-json/commit/a869fb98aaef9225556f49901a8f55954ff856e6 and the GHSA advisory at https://github.com/uhop/stream-json/security/advisories/GHSA-528h-pc64-c93x. If an immediate upgrade is not possible, the most effective compensating control is to validate and reject JSON input whose nesting depth exceeds a safe threshold before it enters the stream-json pipeline - this can be done with a lightweight pre-scan or by enforcing an application-level depth limit using a JSON schema validator. Alternatively, if the workload does not require path-filter features, replacing pick/filter/ignore/replace with streamArray, streamObject, or streamValues (which use the constant-time asm.depth getter) eliminates the vulnerability entirely without requiring an upgrade. Rate-limiting and body-size limits on accepting HTTP JSON payloads provide partial protection but do not eliminate the risk, since the vulnerability is depth-triggered rather than byte-volume-triggered - a compact deeply-nested document can be very small.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
stream-json (npm package cpe:2.3:a:uhop:stream-json:*:*:*:*:*:*:*:*) is a Node.js streaming JSON parser designed for large-document processing with minimal memory. Its path filters - pick, ignore, filter, replace - are implemented in src/core/filters/filter-base.js and operate by maintaining a nesting stack that mirrors the JSON object/array depth. The flaw, classified as CWE-407 (Inefficient Algorithmic Complexity), is that on every 'checkable token' emitted while the parser is in the 'check' state, the filter function calls stack.join(separator) to reconstruct the full path string before comparing it against the caller's string or RegExp. Because the stack depth equals the JSON nesting depth D, each join is O(D), and since the join is called once per nesting level in the worst case, total cost is O(D²). The streamArray, streamObject, and streamValues streamers are not affected because they use the O(1) asm.depth getter rather than path-string recomputation. The fix in 3.5.0 adds a maxDepth guard (default 1024) that throws a RangeError when a token is nested beyond the limit, capping worst-case cost to O(maxDepth²) and providing an opt-in escape hatch via maxDepth: Infinity.
Know when Node.js 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
AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
AV:N reflects primary use in network-facing Node.js services receiving untrusted JSON; PR:N because no authentication is required to submit a crafted payload; A:H because the event-loop block affects all concurrent requests.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
stream-json is a micro-library of stream components for processing JSON and JSONC with a minimal memory footprint. Prior to 3.5.0, the path filters pick, ignore, filter, and replace in src/core/filters/filter-base.js recompute the full path string from the nesting stack for every checkable token. Because the stack length equals the current nesting depth and a checkable token is emitted at every level, a depth D document costs O(D²) rather than O(D) to process. The issue is triggered by nesting depth rather than byte volume, including the documented pick({filter: 'data'}) traversal-until-match path, so an application that sends untrusted JSON through a string or RegExp filter can block the Node.js event loop and cause denial of service with a small deeply nested document. The streamArray, streamObject, and streamValues streamers are not affected because they use the constant-time asm.depth getter. This issue is fixed in version 3.5.0.
Blast Radius
ecosystem impact- 3 npm packages depend on stream-json (3 direct, 0 indirect)
Ecosystem-wide dependent count for version 3.5.0.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation
A vulnerability in the NuPoint Unified Messaging (NPM) component of Mitel MiCollab through 9.8 SP1 FP2 (9.8.1.201) could
FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote
Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour
Eval injection vulnerability in the internals.batch function in lib/batch.js in the bassmaster plugin before 1.5.2 for t
Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete
Node.js 8.5.0 before 8.6.0 allows remote attackers to access unintended files, because a change to ".." handling was inc
An issue was discovered in the node-serialize package 0.0.4 for Node.js. Rated critical severity (CVSS 9.8), this vulner
OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph
Directory traversal vulnerability in the st module before 0.2.5 for Node.js allows remote attackers to read arbitrary fi
Multiple SQL injection vulnerabilities in the Manage Accounts page in the AccountManagement.asmx service in the Solarwin
The JS-YAML module before 2.0.5 for Node.js parses input without properly considering the unsafe !!js/function tag, whic
EUVD-2026-70733
GHSA-528h-pc64-c93x
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB