CVE-2026-140119: node-tar async extract: deep symlink linkpath reaches quadratic getDirs, causing uncatchable heap-exhaustion DoS

Published Dec 1, 2026
·
Updated

node-tar is a tar archive manipulation library for Node.js. Prior to 8.0.0, on non-Windows hosts, asynchronous Unpack extraction of an attacker-controlled archive with a deeply nested linkpath reaches the quadratic PathReservations.getDirs() path. This can exhaust the Node.js heap and terminate the process. Synchronous extraction and the Windows reservation path are not affected by this vector. This issue is fixed in version 8.0.0.

Affected Software

1 affected component
npm/node-tar<8.0.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 8.0.0

Event History

Dec 1, 2026
CVE Published
via MITRE·04:44 PM
Data Sourced
via MITRE·04:44 PM
DescriptionWeakness
Data Sourced
via OSV·04:44 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed to this denial-of-service issue?

Deployments using node-tar versions before 8.0.0 on non-Windows hosts are exposed when they perform asynchronous Unpack extraction of attacker-controlled tar archives. Synchronous extraction and the Windows reservation path are not affected by this vector.

2

What must an attacker provide to trigger the issue?

An attacker needs to supply a tar archive that is extracted through asynchronous Unpack and contains a deeply nested linkpath. Processing that archive can drive the quadratic PathReservations.getDirs() path and exhaust the Node.js heap.

3

What is the operational impact if exploitation succeeds?

The Node.js heap can be exhausted, terminating the affected process. This is a denial-of-service condition.

4

What remediation is available?

Upgrade node-tar to version 8.0.0, which fixes the issue. If upgrading is not immediately possible, avoid asynchronously extracting untrusted archives on non-Windows hosts; synchronous extraction is not affected by this vector.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203