CRLF injection in node-tar - #VU170769

 

CRLF injection in node-tar - #VU170769

Published: November 28, 2026


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

Vulnerability details

The vulnerability allows a remote attacker to forge archive entry attributes, overwrite files within the extraction directory, and execute arbitrary code during npm installation on Windows.

The vulnerability exists due to improper newline handling in the node-tar PAX parser when it treats embedded newlines as record boundaries instead of honoring declared byte lengths. A remote attacker can supply a crafted archive or influence filenames before archiving to redirect extracted files, including overwriting a package manifest so npm runs an injected postinstall script on Windows.


Affected software

node-tar

Remediation

Install security update from vendor's website.

node-tar - update to 8.0.0

External References

Related Security Bulletins