Advisory

GHSA-vj76-c3g6-qr5v

Also known as: CVE-2025-59343

Summary

tar-fs has a symlink validation bypass if destination directory is predictable with a specific tarball

Details

Impact
v3.1.0, v2.1.3, v1.16.5 and below

Patches
Has been patched in 3.1.1, 2.1.4, and 1.16.6

Workarounds
You can use the ignore option to ignore non files/directories.

  ignore (_, header) {
    // pass files & directories, ignore e.g. symlinks
    return header.type !== 'file' && header.type !== 'directory'
  }

Credit
Reported by: Mapta / BugBunny_ai

Severity

High Basis: The source's own band: HIGH

Dates

Published
2025-09-24 18:57 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

tar-fs

npm · All systems

Affected

  • introduced 3.0.0, fixed 3.1.1 (semver)

Fixed versions

3.1.1

Fix

tar-fs

npm · All systems

Affected

  • introduced 2.0.0, fixed 2.1.4 (semver)

Fixed versions

2.1.4

Fix

tar-fs

npm · All systems

Affected

  • introduced 0, fixed 1.16.6 (semver)

Fixed versions

1.16.6

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences