Skip to main content

CVE-2026-104182: CWE-407: Inefficient Algorithmic Complexity in uhop stream-json

0
Medium
VulnerabilityCVE-2026-104182cvecve-2026-104182cwe-407
Published: 10/01/2026 (10/01/2026, 20:15:39 UTC)
Source: CVE Database V5
Vendor/Project: uhop
Product: 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

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected software

uhop

stream-json

Affected versions
<3.6.0
stream-json
pkg:npm/stream-json
Affected versions
<3.6.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/01/2026, 20:46:35 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses