Vulnerabilities in pkg:npm/decompress-zip

PACKAGE
Advisory Summary

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

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/decompress-zip

1 Known Advisory Record(s)

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

CVE Identifier N/A
GHSA Identifier GHSA-73v8-v6g4-vrpm
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Decompress zip
Package Ecosystem npm
Published Date
Last Updated

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.

decompress-zip fixed: 0.2.2
npm install decompress-zip@0.2.2
decompress-zip fixed: 0.3.2
npm install decompress-zip@0.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 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

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. ## Recommendation For `decompress-zip` 0.2.x upgrade to 0.2.2 or later. For `decompress-zip` 0.3.x upgrade to 0.3.2 or later.

GHSA-73v8-v6g4-vrpm Affected Decompress zip Versions

2 component(s)
Fixed Versions:
0.2.20.3.2
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?
GHSA-73v8-v6g4-vrpm is a security vulnerability in Decompress zip involving Arbitrary File Overwrite in decompress-zip under General Security Weakness.
Which Decompress zip versions are affected?
Affected versions include releases prior to 0.2.2, 0.3.2 across affected packages: decompress-zip.
What version fixes GHSA-73v8-v6g4-vrpm?
Upgrading to 0.2.2, 0.3.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is decompress-zip affected?
Yes, decompress-zip is affected in releases prior to 0.2.2, 0.3.2. Upgrade your dependency to 0.2.2, 0.3.2 or later.
What CWE is associated with GHSA-73v8-v6g4-vrpm?
GHSA-73v8-v6g4-vrpm is classified under General Security Weakness.
How can I check npm dependencies for GHSA-73v8-v6g4-vrpm?
Run the dependency tree command: 'npm ls decompress-zip'. 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-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
  }
}