CVE-2024-1163: Mapshaper Path Traversal Vulnerability
MODERATECVE-2024-1163 is a MODERATE (CVSS 6.8) path traversal vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Mapshaper libraries in the npm ecosystem. The issue involves mapshaper path traversal vulnerability. Remediation is available by upgrading affected packages to version 0.6.44.
CVE-2024-1163 at a Glance
Security Impact
CVSS: 6.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L).
How to Fix CVE-2024-1163
To remediate this vulnerability, upgrade all affected Mapshaper 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 mapshaper@0.6.44
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls mapshaper
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2024-1163, inspect your project dependencies using npm:
npm ls mapshaper
Analyze the terminal output to locate any version of Mapshaper in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.6.44), your application is affected.
Note: The npm ls mapshaper 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-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Mapshaper, 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
CVE-2024-1163 Affected Mapshaper Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
mapshaper
|
npm |
< 0.6.44
|
0.6.44
|
References
Frequently Asked Questions
What is CVE-2024-1163?
Which Mapshaper versions are affected?
What version fixes CVE-2024-1163?
Is mapshaper affected?
What is the CVSS score of CVE-2024-1163?
What CWE is associated with CVE-2024-1163?
How can I check npm dependencies for CVE-2024-1163?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-8m36-62rw-9mxw",
"modified" : "2024-11-04T15:28:59Z",
"published" : "2024-02-13T15:31:12Z",
"aliases" : [ "CVE-2024-1163" ],
"summary" : "mapshaper Path Traversal vulnerability",
"details" : "Path Traversal in GitHub repository mbloch/mapshaper prior to 0.6.44.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:L/SC:N/SI:N/SA:N/E:P"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "mapshaper"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.6.44"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-1163"
}, {
"type" : "WEB",
"url" : "https://github.com/mbloch/mapshaper/commit/7437d903c0a87802c3751fc529d2de7098094c72"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/mbloch/mapshaper"
}, {
"type" : "WEB",
"url" : "https://huntr.com/bounties/c1cbc18b-e4ab-4332-ad13-0033f0f976f5"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22", "CWE-400" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-02-13T20:34:18Z",
"nvd_published_at" : "2024-02-13T15:15:08Z"
}
}