Link following in node-tar - #VU170777
Published: November 28, 2026
Vulnerability details
The vulnerability allows a remote attacker to read or overwrite files outside the extraction directory if the application later follows the extracted symbolic links and has the necessary permissions.
The vulnerability exists due to improper symbolic link resolution in node-tar's synchronous and asynchronous extractors when they validate link targets by normalizing paths without accounting for symbolic links. A remote attacker can supply a crafted tar archive for a victim to extract with default options to plant symbolic links that point outside the extraction directory.