stream-json: JSONC parser and verifier re-scan the whole accumulated comment on every input chunk
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| uhop | stream-json | affected |
|
No data.
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Uhop | Stream-json |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-hqr4-qq8f-hg3x | stream-json: JSONC parser and verifier re-scan the whole accumulated comment on every input chunk |
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.202% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| Weaknesses | CWE-1322 | |
| References |
| |
| Metrics |
threat_severity
|
threat_severity
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Uhop
Uhop stream-json |
|
| Vendors & Products |
Uhop
Uhop stream-json |
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| Title | stream-json: JSONC parser and verifier re-scan the whole accumulated comment on every input chunk | |
| Weaknesses | CWE-407 | |
| References |
| |
| Metrics |
cvssV3_1
|