CVE-2026-140251: node-tar async extraction deadlocks permanently when an entry's linkpath is a hierarchical relative of its own path
node-tar is a tar archive manipulation library for Node.js. From 7.5.22 until 8.0.0, node-tar contains a path-reservation deadlock affecting asynchronous archive extraction on POSIX systems. An attacker who can supply a crafted archive containing an entry whose link target is an ancestor or descendant of its own path can cause extraction to stall indefinitely, resulting in denial of service. Synchronous extraction and extraction on Windows are unaffected. This issue is fixed in version 8.0.0.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
node-tarto a version that resolves this vulnerability.Fixed in 8.0.0
Event History
Frequently Asked Questions
Which deployments are exposed to this denial of service?
POSIX systems using asynchronous extraction in node-tar versions from 7.5.22 up to, but not including, 8.0.0 are affected. Windows and synchronous extraction are unaffected.
What must an attacker control to trigger the issue?
The attacker must be able to provide a crafted tar archive for extraction. The archive needs an entry whose link target is an ancestor or descendant of that entry’s own path.
What can be done if upgrading is not immediately possible?
Avoid asynchronous extraction of untrusted archives on POSIX systems. Use synchronous extraction where operationally acceptable, since it is not affected.
How can we determine whether we are already vulnerable?
Check whether the application uses node-tar asynchronous extraction on a POSIX system and whether its node-tar version is 7.5.22 or later but earlier than 8.0.0. Upgrade to version 8.0.0 to obtain the fix.