Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. unzip-stream
  4. ›
  5. GHSA-6jrj-vc65-c983

GHSA-6jrj-vc65-c983: unzip-stream allows Arbitrary File Write via artifact extraction

August 26, 2024

When using the Extract() method of unzip-stream, malicious zip files were able to write to paths they shouldn’t be allowed to.

References

  • github.com/advisories/GHSA-6jrj-vc65-c983
  • github.com/mhr3/unzip-stream
  • github.com/mhr3/unzip-stream/commit/ab67989719abb4dcc774d02de266151905b8d45a
  • github.com/mhr3/unzip-stream/compare/v0.3.1...v0.3.2
  • github.com/mhr3/unzip-stream/security/advisories/GHSA-6jrj-vc65-c983
  • snyk.io/research/zip-slip-vulnerability

Code Behaviors & Features

Detect and mitigate GHSA-6jrj-vc65-c983 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.3.2

Fixed versions

  • 0.3.2

Solution

Upgrade to version 0.3.2 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

npm/unzip-stream/GHSA-6jrj-vc65-c983.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:15 +0000.