Link following in node-tar - #VU170779
Published: November 28, 2026
Vulnerability details
The vulnerability allows a remote attacker to read or overwrite files outside the extraction directory with the extracting user's permissions if the application later follows the extracted symbolic links.
The vulnerability exists due to improper symbolic link resolution in node-tar's tar.x() when it validates normalized targets but creates links using the original targets. A remote attacker can supply a tar archive containing chained symbolic links to redirect subsequent application reads or writes outside the extraction directory.