2 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...
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...