Link following in node-tar - #VU170780
Published: November 28, 2026
Vulnerability details
The vulnerability allows a remote attacker to read or modify files outside the extraction directory if the application later follows an extracted symbolic link, subject to the application's filesystem permissions.
The vulnerability exists due to improper symbolic link resolution in the tar.x() containment checks when normalizing archive paths before resolving intermediate links. A remote attacker can supply a crafted archive for extraction to redirect the application's later reads or writes outside the extraction directory.