Vulnerabilities in pkg:npm/concat-with-sourcemaps
PACKAGEGHSA-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.
pkg:npm/concat-with-sourcemaps
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
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.
npm install concat-with-sourcemaps@1.0.6
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
GHSA-2xv3-h762-ccxv Affected Concat with sourcemaps Versions
1 component(s)| 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?
Which Concat with sourcemaps versions are affected?
What version fixes GHSA-2xv3-h762-ccxv?
Is concat-with-sourcemaps affected?
What CWE is associated with GHSA-2xv3-h762-ccxv?
How can I check npm dependencies for GHSA-2xv3-h762-ccxv?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}