{"id":"CVE-2026-104182","published":"2026-10-01T20:15:39Z","modified":"2026-10-05T20:20:30Z","title":"stream-json: JSONC parser and verifier re-scan the whole accumulated comment on every input chunk","vendor":"uhop","product":"stream-json","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.2,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00184,"percentile":0.04637,"provenance":"source"},"cwes":[{"id":"CWE-407","name":"Inefficient Algorithmic Complexity"}],"references":[{"url":"https://github.com/uhop/stream-json/security/advisories/GHSA-hqr4-qq8f-hg3x","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/uhop/stream-json/commit/c0299dc168ce9455ef5ca5b6a0f6850ee7fa0468","tags":["x_refsource_MISC"]},{"url":"https://github.com/uhop/stream-json/releases/tag/3.6.0","tags":["x_refsource_MISC"]}],"priority":{"score":5.3,"factors":[{"name":"EPSS percentile","points":0.93},{"name":"CVSS severity","points":4.34}]},"vendorSlug":"uhop","affectedVersions":[{"vendor":"uhop","product":"stream-json","versions":["< 3.6.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-10-05T20:20:24.504694Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"stream-json","vulnerableRanges":["<3.6.0"],"patched":["3.6.0"],"from":["GHSA-hqr4-qq8f-hg3x"],"provenance":"source"}],"summary":{"text":"The stream-json library's JSONC parser (stream-json/jsonc/parser.js) and verifier (stream-json/jsonc/verifier.js) prior to version 3.6.0 re-scan a comment from its opening slash each time a block or line comment spans an input chunk, retaining the accumulated buffer, which makes processing quadratic in comment size. An attacker able to supply JSONC input locally, with no authentication or user interaction required, can deliver a large valid comment split across many small chunks to exhaust CPU and stall the Node.js event loop; the plain JSON parser is not affected.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:16:50Z"},"euvd":{"id":"EUVD-2026-91056","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-uhop-stream-json-cve-2026-71429","children":[{"from":"CVE-2026-104182","to":"CVE-2026-114129","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"npm:stream-json","fromFixed":"3.6.0","toFixed":"3.7.0","daysApart":20},{"kind":"same-code","provenance":"machine","files":["wiki"],"commits":["https://github.com/uhop/stream-json/commit/c0299dc168ce9455ef5ca5b6a0f6850ee7fa0468","https://github.com/uhop/stream-json/commit/1929fd80495d45b47e8f8cb1d4e132f915aef012","https://github.com/uhop/stream-json/commit/c06c9a3c02adef89543e26ecebb45837cb284512"],"basis":"rarely changed file"},{"kind":"similar","provenance":"machine","score":0.29,"basis":"same product + CWE + description similarity"}]},{"from":"CVE-2026-104182","to":"CVE-2026-104183","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["wiki"],"commits":["https://github.com/uhop/stream-json/commit/c0299dc168ce9455ef5ca5b6a0f6850ee7fa0468","https://github.com/uhop/stream-json/commit/2f2d35bbb547306991ded6487a279154d865a358"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2026-71429","published":"2026-09-03","fixed":"3.5.0","kev":false,"link":{"from":"CVE-2026-71429","to":"CVE-2026-104182","relation":"successor","confidence":"medium","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:stream-json","fromFixed":"3.5.0","toFixed":"3.6.0","daysApart":28},{"kind":"similar","provenance":"machine","score":0.28,"basis":"same product + CWE + description similarity"}]}},{"cve":"CVE-2026-104182","published":"2026-10-01","fixed":"3.6.0","kev":false},{"cve":"CVE-2026-104183","published":"2026-10-01","fixed":"3.6.0","kev":false},{"cve":"CVE-2026-114129","published":"2026-10-21","fixed":"3.7.0","kev":false}],"package":"npm:stream-json"}}