Intel

AIKIDO-2026-671328

mapshaper is vulnerable to Path Traversal

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Jun 18, 2026
June 18, 2026

61

CVE Score

Medium

Path Traversal

Are you affected? Scan for Free

TL;DR

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.

How do I fix this?

Upgrade the mapshaper library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Package

Versions

0.1.3 - 0.7.26

Fixed in 0.7.27

Background info

mapshaper is vulnerable to Path Traversal in versions 0.1.3 - 0.7.26.

Get secure today,
quickly and for free.

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.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea