Link following in node-tar - #VU170774
Published: November 28, 2026
Vulnerability details
The vulnerability allows a remote attacker to disclose sensitive files outside the extraction directory if a downstream process follows a symlink created during extraction.
The vulnerability exists due to improper link resolution in the node-tar unpacker when it checks symlink targets using lexical normalization rather than filesystem resolution. A remote attacker can supply a crafted archive that, when extracted, leaves an out-of-directory symlink that a downstream process may follow when reading, serving, copying, or archiving the extracted files.