tar-fs
Affected
- introduced
3.0.0, fixed3.1.1(semver)
Fixed versions
3.1.1
Fix
- Fixed version
3.1.1npm install [email protected]
Advisory
Also known as: CVE-2025-59343
tar-fs has a symlink validation bypass if destination directory is predictable with a specific tarball
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
High Basis: The source's own band: HIGH
3.0.0, fixed 3.1.1 (semver)3.1.1
3.1.1npm install [email protected]2.0.0, fixed 2.1.4 (semver)2.1.4
2.1.4npm install [email protected]0, fixed 1.16.6 (semver)1.16.6
1.16.6npm install [email protected]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
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0