Vulnerabilities in pkg:npm/concat-with-sourcemaps

PACKAGE
Advisory Summary

GHSA-2xv3-h762-ccxv is a MODERATE remote code execution vulnerability (CWE-125: Out-of-bounds Read) affecting Concat with sourcemaps libraries in the npm ecosystem. The issue involves out-of-bounds read in concat-with-sourcemaps. Remediation is available by upgrading affected packages to version 1.0.6.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/concat-with-sourcemaps

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/concat-with-sourcemaps. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-2xv3-h762-ccxv - MODERATE Out-of-bounds Read in concat-with-sourcemaps

GHSA-2xv3-h762-ccxv at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-2xv3-h762-ccxv
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-125: Out-of-bounds Read
Affected Product Concat with sourcemaps
Package Ecosystem npm
Published Date
Last Updated

How to Fix GHSA-2xv3-h762-ccxv

To remediate this vulnerability, upgrade all affected Concat with sourcemaps 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-with-sourcemaps fixed: 1.0.6
npm install concat-with-sourcemaps@1.0.6
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-with-sourcemaps

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-2xv3-h762-ccxv, inspect your project dependencies using npm:

npm ls concat-with-sourcemaps

Analyze the terminal output to locate any version of Concat with sourcemaps in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.0.6), your application is affected.

Note: The npm ls concat-with-sourcemaps 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-125: Out-of-bounds Read, where the product reads data past the end, or before the beginning, of the intended buffer. In Concat with sourcemaps, 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-with-sourcemaps` before 1.0.6 allocates uninitialized Buffers when a number is passed as a separator. ## Recommendation Update to version 1.0.6 or later.

GHSA-2xv3-h762-ccxv Affected Concat with sourcemaps Versions

1 component(s)
Fixed Versions:
1.0.6
Product / Package Ecosystem Affected Versions Fixed Version
concat-with-sourcemaps
npm
≥ 1.0.0
< 1.0.6
1.0.6

References

Frequently Asked Questions

What is GHSA-2xv3-h762-ccxv?
GHSA-2xv3-h762-ccxv is a security vulnerability in Concat with sourcemaps involving Out-of-bounds Read in concat-with-sourcemaps under CWE-125: Out-of-bounds Read.
Which Concat with sourcemaps versions are affected?
Affected versions include releases prior to 1.0.6 across affected packages: concat-with-sourcemaps.
What version fixes GHSA-2xv3-h762-ccxv?
Upgrading to 1.0.6 (or the latest patched release for your respective branch) resolves the vulnerability.
Is concat-with-sourcemaps affected?
Yes, concat-with-sourcemaps is affected in releases prior to 1.0.6. Upgrade your dependency to 1.0.6 or later.
What CWE is associated with GHSA-2xv3-h762-ccxv?
GHSA-2xv3-h762-ccxv is classified under CWE-125: Out-of-bounds Read (The product reads data past the end, or before the beginning, of the intended buffer.).
How can I check npm dependencies for GHSA-2xv3-h762-ccxv?
Run the dependency tree command: 'npm ls concat-with-sourcemaps'. 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-2xv3-h762-ccxv",
  "modified" : "2020-08-31T18:31:05Z",
  "published" : "2019-05-29T19:18:02Z",
  "aliases" : [ ],
  "summary" : "Out-of-bounds Read in concat-with-sourcemaps",
  "details" : "Versions of `concat-with-sourcemaps` before 1.0.6 allocates uninitialized Buffers when a number is passed as a separator.\n\n\n## Recommendation\n\nUpdate to version 1.0.6 or later.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "concat-with-sourcemaps"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.0.0"
      }, {
        "fixed" : "1.0.6"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://hackerone.com/reports/320166"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/floridoo/concat-with-sourcemaps/blob/v1.0.5/index.js#L18"
  }, {
    "type" : "WEB",
    "url" : "https://www.npmjs.com/advisories/644"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-125" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2019-05-29T19:17:27Z",
    "nvd_published_at" : null
  }
}