CVE-2026-104182: CWE-407: Inefficient Algorithmic Complexity in uhop stream-json
CVE-2026-104182 is an inefficient algorithmic complexity vulnerability in the JSONC parser and verifier components of the stream-json library prior to version 3.6.0. The issue occurs because the parser restarts scanning for comment terminators from the opening slash whenever a block or line comment spans multiple input chunks, causing quadratic CPU usage and potentially stalling the Node.js event loop. This vulnerability affects only JSONC parsing, not plain JSON parsing. The vulnerability is considered local because the JSONC input is typically user-controlled or locally owned configuration data. The issue is fixed in version 3.6.0.
AI Analysis
Technical Summary
The stream-json library's JSONC parser and verifier (in jsonc/parser.js and jsonc/verifier.js) before version 3.6.0 inefficiently handle comments that span multiple input chunks by repeatedly restarting comment-terminator scanning from the opening slash while retaining the accumulated comment buffer. This results in quadratic CPU complexity when processing large valid comments delivered in many small chunks, which can stall the Node.js event loop. The vulnerability is limited to JSONC input and does not affect the plain JSON parser. The maintainer classifies the attack vector as local, given the input is typically user-controlled or local configuration. The issue is resolved in version 3.6.0.
Potential Impact
The vulnerability can cause high CPU usage due to quadratic algorithmic complexity when processing large JSONC comments split across many small chunks, potentially stalling the Node.js event loop. There is no impact on confidentiality or integrity, only availability (denial of service). The attack vector is local, requiring control over JSONC input, which limits remote exploitation. No known exploits are reported in the wild.
Mitigation Recommendations
Upgrade stream-json to version 3.6.0 or later, where this inefficient algorithmic complexity issue in the JSONC parser and verifier is fixed. No other mitigation is indicated or required.
CVE-2026-104182: CWE-407: Inefficient Algorithmic Complexity in uhop stream-json
Description
CVE-2026-104182 is an inefficient algorithmic complexity vulnerability in the JSONC parser and verifier components of the stream-json library prior to version 3.6.0. The issue occurs because the parser restarts scanning for comment terminators from the opening slash whenever a block or line comment spans multiple input chunks, causing quadratic CPU usage and potentially stalling the Node.js event loop. This vulnerability affects only JSONC parsing, not plain JSON parsing. The vulnerability is considered local because the JSONC input is typically user-controlled or locally owned configuration data. The issue is fixed in version 3.6.0.
CVSS v3.1
Score 6.2medium
Affected software
uhop
stream-json
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The stream-json library's JSONC parser and verifier (in jsonc/parser.js and jsonc/verifier.js) before version 3.6.0 inefficiently handle comments that span multiple input chunks by repeatedly restarting comment-terminator scanning from the opening slash while retaining the accumulated comment buffer. This results in quadratic CPU complexity when processing large valid comments delivered in many small chunks, which can stall the Node.js event loop. The vulnerability is limited to JSONC input and does not affect the plain JSON parser. The maintainer classifies the attack vector as local, given the input is typically user-controlled or local configuration. The issue is resolved in version 3.6.0.
Potential Impact
The vulnerability can cause high CPU usage due to quadratic algorithmic complexity when processing large JSONC comments split across many small chunks, potentially stalling the Node.js event loop. There is no impact on confidentiality or integrity, only availability (denial of service). The attack vector is local, requiring control over JSONC input, which limits remote exploitation. No known exploits are reported in the wild.
Mitigation Recommendations
Upgrade stream-json to version 3.6.0 or later, where this inefficient algorithmic complexity issue in the JSONC parser and verifier is fixed. No other mitigation is indicated or required.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-10-01T18:54:15.118Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6abec329a43b0b3b89faf27d
Added to database: 10/01/2026, 20:31:37 UTC
Last enriched: 10/01/2026, 20:46:35 UTC
Last updated: 10/01/2026, 21:02:48 UTC
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.