CVE-2026-140243: node-tar: Symlink escape from the extraction directory via a trailing `/.` in the entry path

Published Dec 1, 2026
·
Updated

node-tar is a tar archive manipulation library for Node.js. From 7.5.5 until 8.0.0, there is a symlink escape from the extraction directory via a trailing /. in the entry path. Any application that extracts attacker-supplied tarballs with tar.x() / tar.extract() and then reads, serves, copies or rewrites the extracted files can be pointed at an arbitrary file outside the extraction directory. This issue is fixed in version 8.0.0.

Affected Software

1 affected component
npm/tar>=7.5.5<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·05:48 PM
Data Sourced
via MITRE·05:48 PM
DescriptionWeakness
Data Sourced
via OSV·05:48 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·06:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed?

Applications using node-tar versions from 7.5.5 up to, but not including, 8.0.0 are affected when they extract attacker-supplied tarballs with tar.x() or tar.extract() and subsequently read, serve, copy, or rewrite extracted files.

2

What must an attacker control to exploit this issue?

The attacker must be able to supply a tar archive that the application extracts. Exploitation depends on the application performing follow-on operations on the extracted files.

3

What should teams do if they are using an affected release?

Upgrade node-tar to version 8.0.0, which fixes the issue. Until then, avoid extracting attacker-supplied tarballs in workflows that read, serve, copy, or rewrite the resulting files.

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