node-tar: SymbolicLink extraction escapes the extraction directory on non-Windows hosts via a backslash separator differential
RSS Feed
HIGH
CVE-2026-140246
GHSA-hqgx-p3r3-2cfg
Description:
node-tar is a tar archive manipulation library for Node.js. Prior to 8.0.0, on non-Windows hosts, SymbolicLink extraction applies Windows-style backslash separator semantics during the linkpath containment check but passes the raw linkpath to the filesystem, where a backslash is an ordinary filename character. A crafted archive can therefore plant a link inside the extraction directory that resolves to a host path outside it. A later consumer can read through the link, but node-tar does not itself establish an arbitrary-write impact. This issue is fixed in version 8.0.0.
Affected Packages
No package information available.
Actions
Advisory Details
| Published: | December 01, 2026 about 16 hours ago |
| Updated: | December 01, 2026 about 13 hours ago |
| CVSS Score: | 7.2 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 |
| Source: | Osv |
| UUID: | CVE-2026-140246 |
References
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/140xxx/CVE-2026-140246.json
- https://github.com/isaacs/node-tar/commit/23b368128b6cf7d4c26f2e302c0e4a82f70a6e3d
- https://github.com/isaacs/node-tar/releases/tag/v8.0.0
- https://github.com/isaacs/node-tar/security/advisories/GHSA-hqgx-p3r3-2cfg
- https://nvd.nist.gov/vuln/detail/CVE-2026-140246