CVE-2026-104182 Details
Description
stream-json is a micro-library of stream components for processing JSON and JSONC with a minimal memory footprint. Prior to 3.6.0, the JSONC parser at stream-json/jsonc/parser.js and verifier at stream-json/jsonc/verifier.js restart comment-terminator scanning from the opening slash whenever a block or line comment spans an input chunk, while retaining the accumulated comment buffer. Delivering a large valid comment across many small chunks therefore causes quadratic CPU work and can stall the Node.js event loop. The maintainer characterizes the attack vector as local because the documented JSONC input is locally owned or user-controlled configuration, rather than input intended for the open internet. This JSONC-only scope does not include the plain JSON parser, which advances through and discards consumed string and number data. This issue is fixed in version 3.6.0.
A denial-of-service vulnerability has been identified in the stream-json library, specifically in versions through 3.5.0. The issue arises in the JSONC parser and verifier, which improperly handle comments that span multiple input chunks. This flaw allows a large comment to be delivered in small pieces, causing the parser to re-scan the entire comment from the beginning each time a new chunk is processed. As a result, the CPU workload increases quadratically, effectively stalling the Node.js event loop. The vulnerability is characterized as local, as it involves JSONC input that is user-controlled or owned, rather than data intended for public use.
Users can upgrade to stream-json version 3.6.0 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 1, 2026CISA-ADP
Assessed Oct 5, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/uhop/stream-json/security/advisories/GHSA-hqr4-qq8f-hg3x | CISA-ADP | AdvisoryExploitRemedyVendor |
| https://github.com/uhop/stream-json/commit/c0299dc168ce9455ef5ca5b6a0f6850ee7fa0468 | [email protected] | Source CodeVendor |
| https://github.com/uhop/stream-json/releases/tag/3.6.0 | [email protected] | Release NotesVendor |
| https://github.com/uhop/stream-json/security/advisories/GHSA-hqr4-qq8f-hg3x | [email protected] | AdvisoryExploitRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-407 | Inefficient Algorithmic Complexity | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| uhop stream-json | <= 3.5.0 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 5, 2026 | CVE Modified | CISA-ADP |
| Oct 1, 2026 | New CVE Received | [email protected] |
Volerion