{"id":"CVE-2026-29786","published":"2026-03-07T15:32:22Z","modified":"2026-09-01T12:05:00Z","title":"node-tar: Hardlink Path Traversal via Drive-Relative Linkpath","vendor":"isaacs","product":"node-tar","tier":"tail","description":{"text":"node-tar is a full-featured Tar for Node.js. Prior to version 7.5.10, tar can be tricked into creating a hardlink that points outside the extraction directory by using a drive-relative link target such as C:../target.txt, which enables file overwrite outside cwd during normal tar.x() extraction. This issue has been patched in version 7.5.10.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.2,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:L/SC:N/SI:H/SA:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00511,"percentile":0.44512,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"},{"id":"CWE-59","name":"Improper Link Resolution Before File Access"}],"references":[{"url":"https://github.com/isaacs/node-tar/security/advisories/GHSA-qffp-2rhf-9h96","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/isaacs/node-tar/commit/7bc755dd85e623c0279e08eb3784909e6d7e4b9f","tags":["x_refsource_MISC"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-29786","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2445476","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-29786.json","tags":["x_sadp-csaf-vex"]}],"priority":{"score":19.6,"factors":[{"name":"EPSS percentile","points":8.9},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":5.74}]},"exploitSources":{"pocGithub":{"count":2,"skipped":0,"earliest":"2026-03-05","earliestUrl":"https://github.com/Jvr2022/CVE-2026-29786","repos":[{"name":"Jvr2022/CVE-2026-29786","url":"https://github.com/Jvr2022/CVE-2026-29786","stars":1,"created":"2026-03-05"},{"name":"Rohitberiwala/NodeJS-Tar-Symlink-Exploit-CVE-2026-29786","url":"https://github.com/Rohitberiwala/NodeJS-Tar-Symlink-Exploit-CVE-2026-29786","stars":1,"created":"2026-03-10"}]},"first":{"date":"2026-03-05","source":"PoC-in-GitHub","url":"https://github.com/Jvr2022/CVE-2026-29786"},"provenance":"source"},"vendorSlug":"isaacs","affectedVersions":[{"vendor":"isaacs","product":"node-tar","versions":["< 7.5.10"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-03-09T17:52:29.312917Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"tar","vulnerableRanges":["<7.5.10"],"patched":["7.5.10"],"from":["GHSA-qffp-2rhf-9h96"],"provenance":"source"}],"summary":{"text":"node-tar, the full-featured Tar library for Node.js, contains a path traversal flaw in its extraction logic, where a drive-relative link target such as C:../target.txt can cause a hardlink to be created pointing outside the extraction directory. An attacker who can supply a crafted tar archive that a victim extracts with tar.x() needs only local access and a user interaction (the victim performing the extraction), with no authentication or special configuration required, to overwrite files outside the current working directory.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:36:27Z"},"euvd":{"id":"EUVD-2026-10164","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-isaacs-node-tar-cve-2026-23745","parents":[{"from":"CVE-2026-26960","to":"CVE-2026-29786","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"npm:tar","fromFixed":"7.5.8","toFixed":"7.5.10","daysApart":15},{"kind":"same-code","provenance":"machine","files":["src/unpack.ts"],"commits":["https://github.com/isaacs/node-tar/commit/2cb1120bcefe28d7ecc719b41441ade59c52e384","https://github.com/isaacs/node-tar/commit/d18e4e1f846f4ddddc153b0f536a19c050e7499f","https://github.com/isaacs/node-tar/commit/7bc755dd85e623c0279e08eb3784909e6d7e4b9f"],"basis":"shared function","functions":["Unpack"]}]},{"from":"CVE-2026-23745","to":"CVE-2026-29786","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/unpack.ts"],"commits":["https://github.com/isaacs/node-tar/commit/340eb285b6d986e91969a1170d7fe9b0face405e","https://github.com/isaacs/node-tar/commit/7bc755dd85e623c0279e08eb3784909e6d7e4b9f"],"basis":"shared function","functions":["Unpack"]}]},{"from":"CVE-2026-24842","to":"CVE-2026-29786","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/unpack.ts"],"commits":["https://github.com/isaacs/node-tar/commit/f4a7aa9bc3d717c987fdf1480ff7a64e87ffdb46","https://github.com/isaacs/node-tar/commit/7bc755dd85e623c0279e08eb3784909e6d7e4b9f"],"basis":"shared function","functions":["Unpack"]}]}],"children":[{"from":"CVE-2026-29786","to":"CVE-2026-31802","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"npm:tar","fromFixed":"7.5.10","toFixed":"7.5.11","daysApart":2},{"kind":"same-code","provenance":"machine","files":["src/unpack.ts"],"commits":["https://github.com/isaacs/node-tar/commit/7bc755dd85e623c0279e08eb3784909e6d7e4b9f","https://github.com/isaacs/node-tar/commit/f48b5fa3b7985ddab96dc0f2125a4ffc9911b6ad"],"basis":"shared function","functions":["Unpack"]},{"kind":"similar","provenance":"machine","score":0.83,"basis":"same product + CWE + description similarity"}]},{"from":"CVE-2026-29786","to":"CVE-2026-59871","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/unpack.ts"],"commits":["https://github.com/isaacs/node-tar/commit/7bc755dd85e623c0279e08eb3784909e6d7e4b9f","https://github.com/isaacs/node-tar/commit/e02a4e9e013c4be95302e2eb2047a942b883c27b"],"basis":"shared function","functions":["Unpack"]}]}],"packageHistory":[{"cve":"CVE-2026-23950","published":"2026-01-20","fixed":"7.5.4","kev":false},{"cve":"CVE-2026-24842","published":"2026-01-28","fixed":"7.5.7","kev":false},{"cve":"CVE-2026-26960","published":"2026-02-20","fixed":"7.5.8","kev":false},{"cve":"CVE-2026-29786","published":"2026-03-07","fixed":"7.5.10","kev":false},{"cve":"CVE-2026-31802","published":"2026-03-09","fixed":"7.5.11","kev":false},{"cve":"CVE-2026-53655","published":"2026-06-22","fixed":"7.5.16","kev":false},{"cve":"CVE-2026-59875","published":"2026-07-08","fixed":"7.5.17","kev":false}],"package":"npm:tar"}}