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

- Severity: High (CVSS:4.0, scored by GitHub) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2024-08-26T15:17:40.000Z
- Modified: 2024-08-26T15:17:40.000Z
- Weaknesses: CWE-22

## 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

(As written by GitHub Advisory Database.)

## Affected

- unzip-stream (npm): before 0.3.2

## Every score

- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N`

## 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)

## Sources

- GitHub Advisory Database: [GHSA-6jrj-vc65-c983](https://github.com/advisories/GHSA-6jrj-vc65-c983), CC-BY-4.0, modified 2024-08-26

---

Page: https://cve.day/GHSA-6jrj-vc65-c983 · Whole record: https://cve.day/GHSA-6jrj-vc65-c983.json · Rebuilt by cve.day 2026-11-25T22:56:44.388Z
