CVE Explorer
CVE-2026-31802
node-tar is a full-featured Tar for Node.js. Prior to version 7.5.11, tar (npm) can be tricked into creating a symlink that points outside the extraction directory by using a drive-relative symlink target such as C:../../../target.txt, which enables file overwrite outside cwd during normal tar.x() extraction. This vulnerability is fixed in 7.5.11.
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"product":"node-tar","vendor":"isaacs","versions":[{"status":"affected","version":"< 7.5.11"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:265c5e1403867a743591b1b1476d3f281834b250dbe4df8f9044101986cf4fd5 · sha256:c81979e7ee9a37aa… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackRequirements":"NONE","attackVector":"LOCAL","baseScore":8.2,"baseSeverity":"HIGH","privilegesRequired":"NONE","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"HIGH","userInteraction":"NONE","vectorString":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:H/SA:N","version":"4.0","vulnAvailabilityImpact":"NONE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"HIGH"},"metric_type":"cvssV4_0"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:265c5e1403867a743591b1b1476d3f281834b250dbe4df8f9044101986cf4fd5 · sha256:c81979e7ee9a37aa… · /containers/cna/metrics/0/cvssV4_0
CWE assertions
1 source assertion{"cweId":"CWE-22","description":"CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:265c5e1403867a743591b1b1476d3f281834b250dbe4df8f9044101986cf4fd5 · sha256:c81979e7ee9a37aa… · /containers/cna/problemTypes/0/descriptions/0
Source references
3 source assertions{"name":"https://github.com/isaacs/node-tar/commit/f48b5fa3b7985ddab96dc0f2125a4ffc9911b6ad","tags":["x_refsource_MISC"],"url":"https://github.com/isaacs/node-tar/commit/f48b5fa3b7985ddab96dc0f2125a4ffc9911b6ad"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:265c5e1403867a743591b1b1476d3f281834b250dbe4df8f9044101986cf4fd5 · sha256:c81979e7ee9a37aa… · /containers/cna/references/1
{"name":"https://github.com/isaacs/node-tar/security/advisories/GHSA-9ppj-qmqm-q256","tags":["x_refsource_CONFIRM"],"url":"https://github.com/isaacs/node-tar/security/advisories/GHSA-9ppj-qmqm-q256"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:265c5e1403867a743591b1b1476d3f281834b250dbe4df8f9044101986cf4fd5 · sha256:c81979e7ee9a37aa… · /containers/cna/references/0
{"tags":["exploit"],"url":"https://github.com/isaacs/node-tar/security/advisories/GHSA-9ppj-qmqm-q256"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:265c5e1403867a743591b1b1476d3f281834b250dbe4df8f9044101986cf4fd5 · sha256:c81979e7ee9a37aa… · /containers/adp/0/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.