← Signals

Dec 5, 2026

3 min

VulnCheck

  • tar-fs
  • npm
  • nodejs
  • path-traversal
  • cve-2026-145489

news

tar-fs Nested Symlink Path Traversal Writes Outside the Extraction Directory (CVE-2026-145489)

High 7.1

tar-fs before 2.1.6 and 3.x before 3.1.4 lets a crafted tarball chain symlinks with '..' segments so later entries write or read files outside the extraction directory. CVE-2026-145489, CVSS 4.0 7.1 (VulnCheck). Fixed in 2.1.6 and 3.1.4. No public PoC and no reported exploitation. Not in CISA KEV.

Record
CVE-2026-145489
Score
High 7.1
Status
Not KEVChecked, not listed
Organization
VulnCheck

Summary

Anything in Node that unpacks a tarball with tar-fs can be made to write files outside the target directory. CVE-2026-145489 (CVSS 4.0 7.1 High, CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N; CVSS 3.1 6.5) covers a symlink check that only looked at one link at a time. A crafted archive drops a symlink early, then later entries walk through it with .. segments and create links or files outside the destination. Fixed in 2.1.6 and 3.1.4, both published to npm on 23 November 2026. The CVE went public on 5 December 2026 (UTC).

Status: Disclosed. Not in CISA KEV catalog 2026.12.04, checked against the KEV JSON feed on 5 December 2026.

Vulnerability details

CVEComponent and mechanismSeverityAffectedFixed in
CVE-2026-145489extract() symlink validation: entries can traverse through earlier symlinks with .. segments and land outside the extraction directory (CWE-59)CVSS 4.0 7.1 High, CVSS 3.1 6.5before 2.1.6, 3.0.0 to before 3.1.42.1.6, 3.1.4
  • Prerequisites: the application extracts an archive the attacker controls or can influence (uploads, downloaded packages, container layers, build artifacts). User interaction is part of the CNA score.
  • What the fix does: the 3.x commit is titled "tweak symlink handling" and validates entry paths, rejects symlinks that escape through other symlinks, and hardens extraction against symlinked directories, invalid links, bad modes and owners. It also bumps tar-stream to 3.3.0. The 2.x line got the same changes as a backport, including a check that rejects invalid uid and gid values before chown.
  • Scoring note: VulnCheck, the CNA, published both scores. NVD lists the record (published 5 December 2026, 03:19 UTC) with no NVD analysis at check time.
  • Credit: Zachariah Mithani (AploSec), per the VulnCheck advisory.

Exploitation status

  • Public PoC: none found. The fix commits include new tests that describe the bad archive layouts; they were read as text only.
  • In the wild: no reports.
  • KEV: not listed in catalog 2026.12.04 (1,814 entries).
  • Confidence: High. The CNA record and the upstream fix commits and npm releases agree.

Operator actions

  1. Upgrade to tar-fs@3.1.4, or tar-fs@2.1.6 if you are still on 2.x.
  2. Find it in your tree. tar-fs is usually a transitive dependency: npm ls tar-fs (or pnpm why tar-fs, yarn why tar-fs) in every project and in built images.
  3. When a direct dependency pins an older version, force it with overrides (npm), resolutions (yarn) or pnpm.overrides, then rebuild and retest.
  4. Until you can upgrade, do not extract untrusted tarballs as a privileged user, and extract into a throwaway directory on a separate filesystem or container.

Sources

→ Source