mapshaper is vulnerable to Path Traversal
61
CVE Score
Medium
Path Traversal
The export path in mapshaper uses a layer's name directly as the output file basename in assignUniqueLayerNames. Because layer names are derived from input data (for example a TopoJSON object key), a crafted input file can supply a name containing path separators, a NULL byte, or a Windows drive prefix, causing output files to be written outside the intended output directory. This allows arbitrary file write or overwrite when a victim converts an untrusted file. The fix rejects layer names that resolve to unsafe filenames before any file is written.
Upgrade the mapshaper library to the patch version.
You are affected if you are using a version that falls within the vulnerable range.
0.1.3 - 0.7.26
Fixed in 0.7.27mapshaper is vulnerable to Path Traversal in versions 0.1.3 - 0.7.26.
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.