{"id":"CVE-2025-59343","aliases":["CVE-2025-59343","GHSA-vj76-c3g6-qr5v"],"related":[],"kind":"vulnerability","state":"published","title":"tar-fs has a symlink validation bypass if destination directory is predictable with a specific tarball","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\n v3.1.0, v2.1.3, v1.16.5 and below\n\n### Patches\nHas been patched in 3.1.1, 2.1.4, and 1.16.6\n\n### Workarounds\nYou can use the ignore option to ignore non files/directories.\n\n```js\n  ignore (_, header) {\n    // pass files & directories, ignore e.g. symlinks\n    return header.type !== 'file' && header.type !== 'directory'\n  }\n```\n\n### Credit\nReported by: Mapta / BugBunny_ai","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2025-09-24T17:43:34.728Z","modified":"2026-09-10T03:50:28.767Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":8.7,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":8.7,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"}],"cwes":["CWE-22","CWE-61"],"affected":[{"ranges":[{"version":">= 3.0.0, < 3.1.1","status":"affected"},{"version":">= 2.0.0, < 2.1.3","status":"affected"},{"version":"< 1.16.5","status":"affected"}],"vendor":"mafintosh","product":"tar-fs","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"3.0.0","status":"affected","fixed":"3.1.1"}],"ecosystem":"npm","package":"tar-fs","purl":"pkg:npm/tar-fs","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"2.0.0","status":"affected","fixed":"2.1.4"}],"ecosystem":"npm","package":"tar-fs","purl":"pkg:npm/tar-fs","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.16.6"}],"ecosystem":"npm","package":"tar-fs","purl":"pkg:npm/tar-fs","source":"ghsa"}],"references":[{"url":"https://github.com/mafintosh/tar-fs/security/advisories/GHSA-vj76-c3g6-qr5v","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/mafintosh/tar-fs/commit/0bd54cdf06da2b7b5b95cd4b062c9f4e0a8c4e09","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/09/msg00028.html","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-59343","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/mafintosh/tar-fs","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-10-03T14:49:04.310Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-59343","url":"https://www.cve.org/CVERecord?id=CVE-2025-59343","licence":"CVE Terms of Use","modified":"2025-11-03T18:13:55.412Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-vj76-c3g6-qr5v","url":"https://github.com/advisories/GHSA-vj76-c3g6-qr5v","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:28.767Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-59343","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-59343","licence":"Public domain","modified":"2026-06-17T09:45:56.623Z"}],"updatedAt":"2026-11-25T22:59:05.140Z","epss":{"score":0.00604,"percentile":0.50264,"date":"2026-12-01T12:00:22.000Z"}}