{"id":"CVE-2025-59343","aliases":["GHSA-vj76-c3g6-qr5v"],"url":"https://o3.security/vulnerability/CVE-2025-59343","summary":"tar-fs has a symlink validation bypass if destination directory is predictable with a specific tarball","details":"### 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","published":"2025-09-24T17:43:34.728Z","modified":"2026-08-12T03:51:34.325433077Z","cvss":null,"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"npm","name":"tar-fs","fixedVersion":"3.1.1"},{"ecosystem":"npm","name":"tar-fs","fixedVersion":"2.1.4"},{"ecosystem":"npm","name":"tar-fs","fixedVersion":"1.16.6"}],"fix":{"url":"https://github.com/mafintosh/tar-fs/commit/0bd54cdf06da2b7b5b95cd4b062c9f4e0a8c4e09","label":"mafintosh/tar-fs@0bd54cd"},"references":[{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/09/msg00028.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/59xxx/CVE-2025-59343.json"},{"type":"ADVISORY","url":"https://github.com/mafintosh/tar-fs/security/advisories/GHSA-vj76-c3g6-qr5v"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-59343"},{"type":"FIX","url":"https://github.com/mafintosh/tar-fs/commit/0bd54cdf06da2b7b5b95cd4b062c9f4e0a8c4e09"},{"type":"PACKAGE","url":"https://github.com/mafintosh/tar-fs"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:34.325433077Z"}}