CVE-2026-140240: node-tar: A small archive exhausts memory or CPU through path-reservation bookkeeping

Published Dec 1, 2026
·
Updated

node-tar is a tar archive manipulation library for Node.js. Prior to 8.0.2, a small crafted archive can exhaust memory or CPU through several path bookkeeping paths. Asynchronous PathReservations performs excessive work for unbounded linkpath depth and long path components, retains completed reservation state, and stores long names in the normalizeUnicode cache whose entry-count limit does not bound bytes. Separately, filesFilter memoizes path prefixes when the caller supplies a file list. This issue is fixed in version 8.0.2.

Affected Software

1 affected component
npm/tar<8.0.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/node-tar to a version that resolves this vulnerability.

    Fixed in 8.0.2

Event History

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

Frequently Asked Questions

1

Which deployments are realistically exposed?

Applications using npm/tar versions before 8.0.2 are affected when they process crafted tar archives. The filesFilter-related path applies when the caller supplies a file list.

2

What does an attacker need to provide?

An attacker needs a crafted archive designed with unbounded linkpath depth, long path components, or long names. These inputs can drive excessive CPU or memory consumption through path-reservation and Unicode-normalization bookkeeping.

3

How can I determine whether my application is affected?

Check the installed npm/tar version and whether the application processes tar archives. Versions prior to 8.0.2 are affected; version 8.0.2 contains the fix.

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