CVE-2026-145489: tar-fs before 2.1.6 and 3.x before 3.1.4 Symlink Validation Bypass via Nested Symlinks

Published Dec 5, 2026
·
Updated

tar-fs before 2.1.6 and 3.x before 3.1.4 contains a path traversal vulnerability that allows attackers to escape the extraction directory by chaining symlinks with '..' segments. Attackers can supply a crafted tarball where later entries traverse through earlier symlinks, creating links outside the destination to write or read files.

Affected Software

1 affected component
npm/tar-fs<2.1.6, >=3.0.0<3.1.4

Event History

Dec 5, 2026
CVE Published
via MITRE·02:00 AM
Data Sourced
via MITRE·02:00 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·03:19 AM
DescriptionSeverityWeakness
Event
via NVD·03:19 AM

Frequently Asked Questions

1

Which deployments are affected?

Deployments using npm/tar-fs versions earlier than 2.1.6, or 3.x versions earlier than 3.1.4, are affected when they extract attacker-controlled tar archives.

2

What does an attacker need to exploit this issue?

An attacker needs to convince the application to extract a crafted tarball. The attack uses earlier archive entries to create symlinks and later entries containing '..' segments to traverse through those symlinks.

3

What is the impact of successful exploitation?

A crafted archive can escape the intended extraction directory and create links outside that destination. This can enable writes to or reads from files outside the extraction directory.

4

What should be done if an update cannot be applied immediately?

Do not extract untrusted tarballs with affected versions. Restrict archive sources until upgrading to tar-fs 2.1.6 or later in the 2.x line, or 3.1.4 or later in the 3.x line.

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