Intel

AIKIDO-2026-264445

modern-tar is vulnerable to Path Traversal

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Oct 27, 2026
October 27, 2026

50

CVE Score

Medium

Path Traversal

Are you affected? Scan for Free

TL;DR

The packTar function in src/fs/pack.ts packs filesystem sources. With dereference: true and a baseDir option, it resolves each source and rejects any whose real path is outside that directory. Before the fix, the check runs only when the final path segment is a symlink, so a path through an ancestor directory symlink is still archived when the resolved file is outside baseDir. The fix resolves every source when both options are set and skips entries outside baseDir.

How do I fix this?

Upgrade the modern-tar package to version 0.8.6 or later.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and are packing a directory tree with symlink dereferencing enabled alongside an explicit base directory restriction.

Package

Versions

0.4.0 - 0.8.5

Fixed in 0.8.6

Background info

modern-tar is vulnerable to Path Traversal in versions 0.4.0 - 0.8.5.

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