CVE-2026-140244: node-tar: symlink containment bypass via nested symlink + '..' (lexical linkpath check)

Published Dec 1, 2026
·
Updated

node-tar is a tar archive manipulation library for Node.js. Prior to 8.0.0, the STRIPABSOLUTEPATH linkpath containment check uses path.resolve and collapses parent components without following an earlier archive-created symlink. A second symlink can therefore be planted inside the extraction root while pointing outside it. A later consumer that reads, serves, copies, or archives the extracted tree can follow the link and read an arbitrary file. Hardlinks and subsequent node-tar writes through the planted link remain blocked. This issue is fixed in version 8.0.0.

Affected Software

1 affected component
npm/tar<8.0.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

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

    Fixed in 8.0.0

Event History

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

Frequently Asked Questions

1

What conditions are required for exploitation?

An attacker must be able to provide or influence a tar archive that node-tar extracts. The archive must create nested symlinks that bypass the lexical containment check, and a later consumer must follow the planted symlink by reading, serving, copying, or archiving the extracted tree.

2

What is the practical impact of a planted symlink?

A later consumer of the extracted tree can follow the symlink and read an arbitrary file outside the extraction root. The issue does not permit hardlink exploitation or subsequent node-tar writes through the planted link, as those remain blocked.

3

Which versions are affected and what fixes the issue?

Versions prior to 8.0.0 are affected. Upgrade node-tar to version 8.0.0 to obtain 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