{"id":"GHSA-6jrj-vc65-c983","aliases":[],"status":"published","title":"unzip-stream allows Arbitrary File Write via artifact extraction","description":"### Impact\n\nWhen using the `Extract()` method of unzip-stream, malicious zip files were able to write to paths they shouldn't be allowed to.\n\n### Patches\n\nFixed in 0.3.2\n\n### References\n\n- https://snyk.io/research/zip-slip-vulnerability\n- https://github.com/mhr3/unzip-stream/compare/v0.3.1...v0.3.2\n\n### Credits\n\nJustin Taft from Google","severity":{"version":"4.0","score":8.7,"vector":"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","level":"high","from":"ghsa"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-22"],"published":"2024-08-26T15:17:40Z","modified":"2024-08-26T15:17:42Z","fixes":[{"ecosystem":"npm","package":"unzip-stream","fixed_in":["0.3.2"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"unzip-stream","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.3.2"}]}]},{"source":"osv","ecosystem":"npm","package":"unzip-stream","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.3.2"}]}]}],"references":[{"url":"https://github.com/mhr3/unzip-stream/security/advisories/GHSA-6jrj-vc65-c983","tags":["web"]},{"url":"https://github.com/mhr3/unzip-stream/commit/ab67989719abb4dcc774d02de266151905b8d45a","tags":["web"]},{"url":"https://github.com/mhr3/unzip-stream/compare/v0.3.1...v0.3.2","tags":["web"]},{"url":"https://snyk.io/research/zip-slip-vulnerability","tags":["web"]},{"url":"https://github.com/advisories/GHSA-6jrj-vc65-c983"},{"url":"https://github.com/mhr3/unzip-stream","tags":["package"]}],"sources":{"ghsa":[{"id":"GHSA-6jrj-vc65-c983","title":"unzip-stream allows Arbitrary File Write via artifact extraction","description":"### Impact\n\nWhen using the `Extract()` method of unzip-stream, malicious zip files were able to write to paths they shouldn't be allowed to.\n\n### Patches\n\nFixed in 0.3.2\n\n### References\n\n- https://snyk.io/research/zip-slip-vulnerability\n- https://github.com/mhr3/unzip-stream/compare/v0.3.1...v0.3.2\n\n### Credits\n\nJustin Taft from Google","status":"published","published":"2024-08-26T15:17:40Z","modified":"2024-08-26T15:17:42Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high"},{"version":"4.0","score":8.7,"vector":"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","level":"high"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T14:38:00.257632Z"}],"osv":[{"id":"GHSA-6jrj-vc65-c983","title":"unzip-stream allows Arbitrary File Write via artifact extraction","description":"### Impact\n\nWhen using the `Extract()` method of unzip-stream, malicious zip files were able to write to paths they shouldn't be allowed to.\n\n### Patches\n\nFixed in 0.3.2\n\n### References\n\n- https://snyk.io/research/zip-slip-vulnerability\n- https://github.com/mhr3/unzip-stream/compare/v0.3.1...v0.3.2\n\n### Credits\n\nJustin Taft from Google","status":"published","published":"2024-08-26T15:17:40Z","modified":"2024-08-26T15:17:40Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high"},{"version":"4.0","score":8.7,"vector":"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","level":"high"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T15:46:39.965326Z"}]}}
