CVE-2026-140245: node-tar: Symlink linkpath containment bypass via entry paths ending in '/.'
A relative symlink linkpath is validated against path.posix.dirname(entry.path) but created at path.resolve(cwd, entry.path). An entry named ‘x/.’ shifts the check’s base one level shallower, so one ‘..’ is absorbed by the check and the link still escapes the extraction directory, with default options and no warning. Regression in 7.5.5-7.5.22 (introduced by the #450 fix).
References
Code Behaviors & Features
Detect and mitigate CVE-2026-140245 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →