{"id":"GHSA-vj76-c3g6-qr5v","revision":"691cbe12251f4bc3a3f638384b457e40","records":[{"revision":"691cbe12251f4bc3a3f638384b457e40","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-vj76-c3g6-qr5v","aliases":["CVE-2025-59343"],"title":"tar-fs has a symlink validation bypass if destination directory is predictable with a specific tarball","description":"### 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","state":0,"publishedAt":"2025-09-24T18:57:04+00:00","modifiedAt":"2026-09-10T03:50:28.7673262+00:00","affected":[{"ecosystem":"npm","name":"tar-fs","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"3.0.0"},{"kind":"fixed","version":"3.1.1"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"tar-fs","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"2.0.0"},{"kind":"fixed","version":"2.1.4"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"tar-fs","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.16.6"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V4","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":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/mafintosh/tar-fs/security/advisories/GHSA-vj76-c3g6-qr5v","https://nvd.nist.gov/vuln/detail/CVE-2025-59343","https://github.com/mafintosh/tar-fs/commit/0bd54cdf06da2b7b5b95cd4b062c9f4e0a8c4e09","https://github.com/mafintosh/tar-fs","https://lists.debian.org/debian-lts-announce/2025/09/msg00028.html"],"sourceUrl":"https://github.com/advisories/GHSA-vj76-c3g6-qr5v","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-vj76-c3g6-qr5v","identifiers":["GHSA-vj76-c3g6-qr5v","CVE-2025-59343"]},"retained":false,"historicalAffected":[]}],"coverage":[]}