GitHub Advisoryadvisory · npm
GHSA-6jrj-vc65-c983 unzip-stream allows Arbitrary File Write via artifact extraction
HIGH
Official page ↗
- Ecosystem
- npm
- Packages
- unzip-stream
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- Weaknesses
- CWE-22
- Reviewed
- 2024-08-26
Affected packages
• npm unzip-stream: < 0.3.2 → fixed in 0.3.2
Description
Impact
When using the `Extract()` method of unzip-stream, malicious zip files were able to write to paths they shouldn't be allowed to.
Patches
Fixed in 0.3.2
References
• https://snyk.io/research/zip-slip-vulnerability
• https://github.com/mhr3/unzip-stream/compare/v0.3.1...v0.3.2
Credits
Justin Taft from Google
Related
Weakness · CWE (1)
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness
References
- https://github.com/mhr3/unzip-stream/security/advisories/GHSA-6jrj-vc65-c983 web
- https://github.com/mhr3/unzip-stream/commit/ab67989719abb4dcc774d02de266151905b8d45a web
- https://github.com/mhr3/unzip-stream package
- https://github.com/mhr3/unzip-stream/compare/v0.3.1...v0.3.2 web
- https://snyk.io/research/zip-slip-vulnerability web