Link following in node-tar - #VU170778
Published: November 28, 2026
Vulnerability details
The vulnerability allows a remote attacker to potentially access files outside the extraction directory through a symbolic link that an application later follows.
The vulnerability exists due to improper link resolution in node-tar's archive extractor when it validates nested symbolic link targets without accounting for how the filesystem resolves them. A remote attacker can supply a crafted tar archive to an application that extracts and later follows its links to potentially access files outside the intended directory.