# CVE-2026-140245: node-tar: Symlink linkpath containment bypass via entry paths ending in '/.'

- Severity: High 7.2 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:H/VA:L/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-12-01T17:51:11.396Z
- Modified: 2026-12-02T01:45:50.777Z
- Also known as: GHSA-jmj2-9c5q-vw73
- Weaknesses: CWE-22
- Assigned by: GitHub_M

## Description

node-tar is a tar archive manipulation library for Node.js. From 7.5.5 until 8.0.0, symlink linkpath containment bypass via entry paths ending in '/.'. A crafted archive can create a symlink pointing outside the extraction directory using default options and without any warning. The affected security path includes [STRIPABSOLUTEPATH], linkpath, path.posix.dirname(entry.path). This issue is fixed in version 8.0.0.

(As written by CVE List.)

## Affected

- isaacs node-tar: >= 7.5.5, < 8.0.0
- tar (npm): from 7.5.5 before 8.0.0

## Every score

- GitHub_M: CVSS:4.0 7.2 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:H/VA:L/SC:N/SI:N/SA:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:H/VA:L/SC:N/SI:N/SA:N`

## References

- <https://github.com/isaacs/node-tar/security/advisories/GHSA-jmj2-9c5q-vw73> (web)
- <https://github.com/isaacs/node-tar/commit/23b368128b6cf7d4c26f2e302c0e4a82f70a6e3d> (web)
- <https://github.com/isaacs/node-tar/releases/tag/v8.0.0> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-140245> (advisory)
- <https://github.com/isaacs/node-tar> (package)

## Sources

- CVE List: [CVE-2026-140245](https://www.cve.org/CVERecord?id=CVE-2026-140245), CVE Terms of Use, modified 2026-12-01
- GitHub Advisory Database: [GHSA-jmj2-9c5q-vw73](https://github.com/advisories/GHSA-jmj2-9c5q-vw73), CC-BY-4.0, modified 2026-12-02
- NVD: [CVE-2026-140245](https://nvd.nist.gov/vuln/detail/CVE-2026-140245), Public domain, modified 2026-12-01

---

Page: https://cve.day/CVE-2026-140245 · Whole record: https://cve.day/CVE-2026-140245.json · Rebuilt by cve.day 2026-12-02T01:57:26.081Z
