GHSA-g74r-ffvr-5q9f: Concat stream Memory Exposure Vulnerability

MODERATE
CWE-200
Published
Advisory Summary

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

GHSA-g74r-ffvr-5q9f at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-g74r-ffvr-5q9f
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Affected Product Concat stream
Package Ecosystem npm
Published Date
Last Updated

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.

concat-stream fixed: 1.5.2
npm install concat-stream@1.5.2
concat-stream fixed: 1.4.11
npm install concat-stream@1.4.11
concat-stream fixed: 1.3.2
npm install concat-stream@1.3.2
Verify Direct and Transitive Dependencies

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

Versions of `concat-stream` before 1.5.2 are vulnerable to memory exposure if userp provided input is passed into `write()` Versions <1.3.0 are not affected due to not using unguarded Buffer constructor. ## Recommendation Update to version 1.5.2, 1.4.11, 1.3.2 or later. If you are unable to update make sure user provided input into the `write()` function is not a number.

GHSA-g74r-ffvr-5q9f Affected Concat stream Versions

3 component(s)
Fixed Versions:
1.5.21.4.111.3.2
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?
GHSA-g74r-ffvr-5q9f is a security vulnerability in Concat stream involving Memory Exposure in concat-stream under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.
Which Concat stream versions are affected?
Affected versions include releases prior to 1.5.2, 1.4.11, 1.3.2 across affected packages: concat-stream.
What version fixes GHSA-g74r-ffvr-5q9f?
Upgrading to 1.5.2, 1.4.11, 1.3.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is concat-stream affected?
Yes, concat-stream is affected in releases prior to 1.5.2, 1.4.11, 1.3.2. Upgrade your dependency to 1.5.2, 1.4.11, 1.3.2 or later.
What CWE is associated with GHSA-g74r-ffvr-5q9f?
GHSA-g74r-ffvr-5q9f is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor (The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.).
How can I check npm dependencies for GHSA-g74r-ffvr-5q9f?
Run the dependency tree command: 'npm ls concat-stream'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}