CVE-2026-140245: node-tar: Symlink linkpath containment bypass via entry paths ending in '/.'

Published Dec 1, 2026
·
Updated

node-tar is a tar archive manipulation library for Node.js. From 7.5.5 until 8.0.0, symlink linkpath containment bypass via entry paths ending in '/.'. A crafted archive can create a symlink pointing outside the extraction directory using default options and without any warning. The affected security path includes [STRIPABSOLUTEPATH], linkpath, path.posix.dirname(entry.path). 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:51 PM
Data Sourced
via MITRE·05:51 PM
DescriptionWeakness
Data Sourced
via OSV·05:51 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·06:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which installations are affected?

The issue affects npm/tar versions from 7.5.5 up to, but not including, 8.0.0. Version 8.0.0 fixes the issue.

2

Does exploitation require non-default extraction settings or a warning bypass?

No. A crafted archive can create a symlink outside the extraction directory using default options and without any warning.

3

What must an attacker provide to exploit this issue?

An attacker needs to supply a crafted tar archive containing an entry path ending in '/.' that triggers the symlink linkpath containment bypass during extraction.

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