Vulnerabilities in pkg:npm/concat-stream
PACKAGEGHSA-g74r-ffvr-5q9f is a MODERATE memory exposure vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting Concat stream libraries in the npm ecosystem. The issue involves memory exposure in concat-stream. Remediation is available by upgrading affected packages to version 1.5.2, 1.4.11, 1.3.2.
pkg:npm/concat-stream
Vulnerability advisories affecting package pkg:npm/concat-stream. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-g74r-ffvr-5q9f | - | MODERATE | Memory Exposure in concat-stream |
GHSA-g74r-ffvr-5q9f at a Glance
How to Fix GHSA-g74r-ffvr-5q9f
To remediate this vulnerability, upgrade all affected Concat stream dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install concat-stream@1.5.2
npm install concat-stream@1.4.11
npm install concat-stream@1.3.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls concat-stream
How to Check if You Are Affected
To determine whether your Node.js application is affected by GHSA-g74r-ffvr-5q9f, inspect your project dependencies using npm:
npm ls concat-stream
Analyze the terminal output to locate any version of Concat stream in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.5.2), your application is affected.
Note: The npm ls concat-stream command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. In Concat stream, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-g74r-ffvr-5q9f Affected Concat stream Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
concat-stream
|
npm |
≥ 1.5.0
< 1.5.2
|
1.5.2
|
|
concat-stream
|
npm |
≥ 1.4.0
< 1.4.11
|
1.4.11
|
|
concat-stream
|
npm |
≥ 1.3.0
< 1.3.2
|
1.3.2
|
References
Frequently Asked Questions
What is GHSA-g74r-ffvr-5q9f?
Which Concat stream versions are affected?
What version fixes GHSA-g74r-ffvr-5q9f?
Is concat-stream affected?
What CWE is associated with GHSA-g74r-ffvr-5q9f?
How can I check npm dependencies for GHSA-g74r-ffvr-5q9f?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-g74r-ffvr-5q9f",
"modified" : "2020-08-31T18:29:17Z",
"published" : "2019-06-03T17:26:44Z",
"aliases" : [ ],
"summary" : "Memory Exposure in concat-stream",
"details" : "Versions of `concat-stream` before 1.5.2 are vulnerable to memory exposure if userp provided input is passed into `write()`\n\nVersions <1.3.0 are not affected due to not using unguarded Buffer constructor.\n\n\n\n## Recommendation\n\nUpdate to version 1.5.2, 1.4.11, 1.3.2 or later.\n\nIf you are unable to update make sure user provided input into the `write()` function is not a number.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "concat-stream"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.5.0"
}, {
"fixed" : "1.5.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "concat-stream"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.4.0"
}, {
"fixed" : "1.4.11"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "concat-stream"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.3.0"
}, {
"fixed" : "1.3.2"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/maxogden/concat-stream/pull/47"
}, {
"type" : "WEB",
"url" : "https://github.com/maxogden/concat-stream/pull/47/commits/3e285ba5e5b10b7c98552217f5c1023829efe69e"
}, {
"type" : "WEB",
"url" : "https://gist.github.com/ChALkeR/c2d2fd3f1d72d51ad883df195be03a85"
}, {
"type" : "WEB",
"url" : "https://www.npmjs.com/advisories/597"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-200" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2019-06-03T17:26:24Z",
"nvd_published_at" : null
}
}