freenode

← CVE tracker

CVE-2026-140246

node-tar: SymbolicLink extraction escapes the extraction directory on non-Windows hosts via a backslash separator differential

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, on non-Windows hosts, SymbolicLink extraction applies Windows-style backslash separator semantics during the linkpath containment check but passes the raw linkpath to the filesystem, where a backslash is an ordinary filename character. A crafted archive can therefore plant a link inside the extraction directory that resolves to a host path outside it. A later consumer can read through the link, but node-tar does not itself establish an arbitrary-write impact. 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.