Link following in node-tar - #VU170777

 

Link following in node-tar - #VU170777

Published: November 28, 2026


Vulnerability identifier: #VU170777
CSH Severity: Medium
CVSS v4: 8.3 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N]
CVE-ID: N/A
CWE-ID: CWE-59
Exploitation vector: Local access
Exploit availability: No public exploit available

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.


Affected software

node-tar

Remediation

Install security update from vendor's website.

node-tar - update to 8.0.0

External References

Related Security Bulletins