{"id":"GHSA-8cj5-5rvv-wf4v","revision":"5f929c3ca1c948718b3854089a9cf790","records":[{"revision":"5f929c3ca1c948718b3854089a9cf790","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-8cj5-5rvv-wf4v","aliases":["CVE-2025-48387"],"title":"tar-fs can extract outside the specified dir with a specific tarball","description":"### Impact\n v3.0.8, v2.1.2, v1.16.4 and below\n\n### Patches\nHas been patched in 3.0.9, 2.1.3, and 1.16.5\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\nThank you Caleb Brown from Google Open Source Security Team for reporting this in detail.","state":0,"publishedAt":"2025-06-03T06:14:25+00:00","modifiedAt":"2026-09-10T03:50:24.9330039+00:00","affected":[{"ecosystem":"npm","name":"tar-fs","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.16.5"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"tar-fs","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"2.0.0"},{"kind":"fixed","version":"2.1.3"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"tar-fs","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"3.0.0"},{"kind":"fixed","version":"3.0.9"}]}],"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/google/security-research/security/advisories/GHSA-xrg4-qp5w-2c3w","https://github.com/mafintosh/tar-fs/security/advisories/GHSA-8cj5-5rvv-wf4v","https://nvd.nist.gov/vuln/detail/CVE-2025-48387","https://github.com/mafintosh/tar-fs/commit/647447b572bc135c41035e82ca7b894f02b17f0f","https://github.com/mafintosh/tar-fs","https://lists.debian.org/debian-lts-announce/2025/06/msg00012.html"],"sourceUrl":"https://github.com/advisories/GHSA-8cj5-5rvv-wf4v","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-8cj5-5rvv-wf4v","identifiers":["GHSA-8cj5-5rvv-wf4v","CVE-2025-48387"]},"retained":false,"historicalAffected":[]}],"coverage":[]}