---
id: CVE-2026-104182
title: >-
  stream-json is a micro-library of stream components for processing JSON and
  JSONC with a minimal memory footprint
summary: >-
  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 comm…
severity: medium
cvss: 6.2
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'
cwe:
  - CWE-407
  - CWE-1322
vendor: uhop
product: stream-json
affected:
  - stream-json < 3.6.0
published: '2026-10-01'
updated: '2026-10-05'
sourceUpdated: '2026-10-05T21:16:32.540'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-104182'
references:
  - url: >-
      https://github.com/uhop/stream-json/commit/c0299dc168ce9455ef5ca5b6a0f6850ee7fa0468
    label: security-advisories@github.com
  - url: 'https://github.com/uhop/stream-json/releases/tag/3.6.0'
    label: security-advisories@github.com
  - url: >-
      https://github.com/uhop/stream-json/security/advisories/GHSA-hqr4-qq8f-hg3x
    label: security-advisories@github.com
  - url: >-
      https://github.com/uhop/stream-json/security/advisories/GHSA-hqr4-qq8f-hg3x
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-104182.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-104182'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2544816'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-104182'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-104182'
  - url: 'https://github.com/advisories/GHSA-hqr4-qq8f-hg3x'
tags:
  - nvd
  - cve.org
  - exploit-available
  - csaf
  - vex
  - red-hat
  - ghsa
  - npm
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-10-05T20:20:24.504694Z'
epss: 0.00202
epssPercentile: 0.10099
ingestedAt: '2026-10-01T21:00:32.274Z'
aliases:
  - GHSA-hqr4-qq8f-hg3x
ecosystem: npm
patched:
  - stream-json 3.6.0
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Vendor advisories

- **Red Hat VEX** · Moderate · affected: Red Hat Build of Podman Desktop · no fix planned: Red Hat Build of Podman Desktop · updated 2026-10-02 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-104182.json)

## Package advisory (CVE-2026-104182)

Affected packages:

- `stream-json <= 3.5.0`

Patched in:

- `stream-json 3.6.0`

Source: https://github.com/advisories/GHSA-hqr4-qq8f-hg3x
