@zip.js/zip.js is vulnerable to Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
50
CVE Score
Medium
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
ZipReader.getEntries() and getEntriesGenerator() in lib/core/zip-reader.js pass each archive entry filename to isUnsafeFilename() when filenameValidation, or its fallback strictness, is set to "balanced" or "strict", the library's documented default. That check rejects a ".." path component only when slashes separate it, and it rejects a filename that starts with two backslashes, so a backslash delimited ".." segment such as ..\file.txt is accepted and Windows resolves it as a parent directory traversal. The fix makes isUnsafeFilename() reject backslash delimited ".." segments.
Upgrade the @zip.js/zip.js library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and you extract an untrusted ZIP archive on Windows using archive supplied filenames.
2.8.50 - 2.14.1
Fixed in 2.15.0@zip.js/zip.js is vulnerable to Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in versions 2.8.50 - 2.14.1.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.