freenode

← CVE tracker

CVE-2026-140247

node-tar: Symlink linkpath escape check is lexical: '..' after an in-archive symlink creates symlinks outside the extraction directory

Severity
high CVSS 7.2 (v4.0)
Affects
node-tar · isaacs
Weakness
CWE-22: Improper Limitation of a Pathname to a Restricted Directory
Published
1 December 2026 by GitHub_M
node-tar is a tar archive manipulation library for Node.js. Prior to 8.0.0, a crafted archive can create a SymbolicLink inside the extraction directory whose linkpath contains a previously created symlink component followed by a parent traversal. STRIPABSOLUTEPATH evaluates the target lexically, but the filesystem follows the earlier symlink first, so the planted link target resolves outside the extraction root. A later consumer that follows the link can read or write outside that root. This issue is fixed in version 8.0.0.

Our coverage

We have not written about this one. Know why it matters? Send a tip.