Vulnerabilities in pkg:npm/decompress-zip
PACKAGEGHSA-73v8-v6g4-vrpm is a HIGH arbitrary file overwrite vulnerability (General Security Weakness) affecting Decompress zip libraries in the npm ecosystem. The issue involves arbitrary file overwrite in decompress-zip. Remediation is available by upgrading affected packages to version 0.2.2, 0.3.2.
pkg:npm/decompress-zip
Vulnerability advisories affecting package pkg:npm/decompress-zip. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-73v8-v6g4-vrpm | - | HIGH | Arbitrary File Overwrite in decompress-zip |
GHSA-73v8-v6g4-vrpm at a Glance
How to Fix GHSA-73v8-v6g4-vrpm
To remediate this vulnerability, upgrade all affected Decompress zip 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 decompress-zip@0.2.2
npm install decompress-zip@0.3.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls decompress-zip
How to Check if You Are Affected
To determine whether your Node.js application is affected by GHSA-73v8-v6g4-vrpm, inspect your project dependencies using npm:
npm ls decompress-zip
Analyze the terminal output to locate any version of Decompress zip in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.2.2), your application is affected.
Note: The npm ls decompress-zip 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 General Security Weakness. In Decompress zip, 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-73v8-v6g4-vrpm Affected Decompress zip Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
decompress-zip
|
npm |
< 0.2.2
|
0.2.2
|
|
decompress-zip
|
npm |
≥ 0.3.0
< 0.3.2
|
0.3.2
|
References
Frequently Asked Questions
What is GHSA-73v8-v6g4-vrpm?
Which Decompress zip versions are affected?
What version fixes GHSA-73v8-v6g4-vrpm?
Is decompress-zip affected?
What CWE is associated with GHSA-73v8-v6g4-vrpm?
How can I check npm dependencies for GHSA-73v8-v6g4-vrpm?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-73v8-v6g4-vrpm",
"modified" : "2020-08-31T18:35:21Z",
"published" : "2020-09-02T15:58:13Z",
"aliases" : [ ],
"summary" : "Arbitrary File Overwrite in decompress-zip",
"details" : "Vulnerable versions of `decompress-zip` are affected by the Zip-Slip vulnerability, an arbitrary file write vulnerability. The vulnerability occurs because `decompress-zip` does not verify that extracted files do not resolve to targets outside of the extraction root directory.\n\n\n\n## Recommendation\n\nFor `decompress-zip` 0.2.x upgrade to 0.2.2 or later.\nFor `decompress-zip` 0.3.x upgrade to 0.3.2 or later.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "decompress-zip"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.2.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "decompress-zip"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.3.0"
}, {
"fixed" : "0.3.2"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/nodejs/security-wg/blob/master/vuln/npm/488.json"
}, {
"type" : "WEB",
"url" : "https://snyk.io/research/zip-slip-vulnerability"
}, {
"type" : "WEB",
"url" : "https://www.npmjs.com/advisories/777"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2020-08-31T18:35:21Z",
"nvd_published_at" : null
}
}