react-native-zip-archive is vulnerable to Path Traversal
65
CVE Score
Medium
Path Traversal
The Android unzip and unzipWithPassword methods extract archives with the bundled zip4j library using its default parameters, which extract symbolic link entries. zip4j does not verify that a symlink's resolved target stays inside the destination directory, so a crafted archive can plant a symbolic link that points outside the extraction root. An attacker who supplies a malicious archive can cause a link to be created outside the intended destination directory, enabling a Zip Slip-style escape and writing or overwriting files outside that directory. The fix extracts entries with symlink extraction disabled so such entries are skipped.
Upgrade the react-native-zip-archive library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and your application extracts untrusted archives on Android.
6.0.9 - 9.0.1
Fixed in 9.0.2react-native-zip-archive is vulnerable to Path Traversal in versions 6.0.9 - 9.0.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.