Symlink Attack Affecting tar-fs package, versions <2.1.6>=3.0.0 <3.1.4


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.53% (47th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-TARFS-23776531
  • published5 Dec 2026
  • disclosed5 Dec 2026
  • creditZachariah Mithani

Introduced: 5 Dec 2026

NewCVE-2026-145489  (opens in a new tab)
CWE-59  (opens in a new tab)

How to fix?

Upgrade tar-fs to version 2.1.6, 3.1.4 or higher.

Overview

tar-fs is a filesystem bindings for tar-stream.

Affected versions of this package are vulnerable to Symlink Attack via the extract function, which fails to validate symlink chains containing .. segments during tarball extraction. An attacker can supply a tarball where later entries traverse through earlier symlinks to escape the extraction directory, enabling writes or reads of arbitrary files outside the intended destination.

CVSS Base Scores

version 4.0
version 3.1