8.7high
tar-fs has a symlink validation bypass if destination directory is predictable with a specific tarball
- Severity
- 8.7high CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.60% (higher than 50% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-vj76-c3g6-qr5v
Description
tar-fs provides filesystem bindings for tar-stream. Versions prior to 3.1.1, 2.1.3, and 1.16.5 are vulnerable to symlink validation bypass if the destination directory is predictable with a specific tarball. This issue has been patched in version 3.1.1, 2.1.4, and 1.16.6. A workaround involves using the ignore option on non files/directories.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| mafintosh tar-fs | >= 3.0.0, < 3.1.1, >= 2.0.0, < 2.1.3, < 1.16.5 | CVE List |
| tar-fs (npm) | from 3.0.0 before 3.1.1, from 2.0.0 before 2.1.4, before 1.16.6 | GitHub Advisory Database |
All scores
| GitHub_M | 8.7high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N |
| GitHub | high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N |
Classification
What each source says
CVE List
tar-fs provides filesystem bindings for tar-stream. Versions prior to 3.1.1, 2.1.3, and 1.16.5 are vulnerable to symlink validation bypass if the destination directory is predictable with a specific tarball. This issue has been patched in version 3.1.1, 2.1.4, and 1.16.6. A workaround involves using the ignore option on non files/directories.
GitHub Advisory Database
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
NVD (es)
tar-fs proporciona enlaces de sistema de archivos para tar-stream. Las versiones anteriores a 3.1.1, 2.1.3 y 1.16.5 son vulnerables a una omisión de validación de enlace simbólico si el directorio de destino es predecible con un tarball específico. Este problema ha sido parcheado en las versiones 3.1.1, 2.1.4 y 1.16.6. Una solución alternativa implica usar la opción de ignorar en elementos que no son archivos/directorios.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-59343 changed 2025-11-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-vj76-c3g6-qr5v changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2025-59343 changed 2026-06-17 | Public domain |