# CVE-2026-104182: stream-json: JSONC parser and verifier re-scan the whole accumulated comment on every input chunk

- Severity: Medium 6.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 10% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-01T20:15:39.108Z
- Modified: 2026-10-05T23:00:06.323Z
- Also known as: GHSA-hqr4-qq8f-hg3x
- Weaknesses: CWE-407
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- uhop stream-json: < 3.6.0
- stream-json (npm): before 3.6.0

## Every score

- GitHub_M: CVSS:3.1 6.2 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 6.2 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/uhop/stream-json/security/advisories/GHSA-hqr4-qq8f-hg3x> (exploit, web)
- <https://github.com/uhop/stream-json/commit/c0299dc168ce9455ef5ca5b6a0f6850ee7fa0468> (web)
- <https://github.com/uhop/stream-json/releases/tag/3.6.0> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-104182> (advisory)
- <https://github.com/uhop/stream-json> (package)

## Sources

- CVE List: [CVE-2026-104182](https://www.cve.org/CVERecord?id=CVE-2026-104182), CVE Terms of Use, modified 2026-10-05
- GitHub Advisory Database: [GHSA-hqr4-qq8f-hg3x](https://github.com/advisories/GHSA-hqr4-qq8f-hg3x), CC-BY-4.0, modified 2026-10-05
- NVD: [CVE-2026-104182](https://nvd.nist.gov/vuln/detail/CVE-2026-104182), Public domain, modified 2026-10-05

---

Page: https://cve.day/CVE-2026-104182 · Whole record: https://cve.day/CVE-2026-104182.json · Rebuilt by cve.day 2026-11-25T22:59:41.880Z
