3 matches found
GHSA-MHQM-9WJ8-W7R4 node-tar: Symlink containment bypass via nested symlink + '..' (lexical linkpath check)
Summary node-tar checks that a symlink's target stays inside cwd, but the check is lexical. It runs path.resolvedirname, linkpath, which collapses .. without following symlinks. Entry 1 s1 - . is accepted because its target is cwd. Entry 2 s2 - s1/../secret.txt resolves lexically to /secret.txt a...
npm: node-tar: Symlink containment bypass via nested symlink + '..' (lexical linkpath check)
npm: node-tar: Symlink containment bypass via nested symlink + '..' lexical linkpath check vulnerability discovered by ? in WordPress npm tar versions 8.0.0...
CVE-2026-140244
The node-tar library for Node.js is vulnerable to a symlink containment bypass in versions prior to 8.0.0 . The root cause is that the STRIPABSOLUTEPATH check uses path.resolve to collapse parent components without following previously created symlinks in the archive. This allows an attacker to p...