High
node-tar linkpath override lets tar files escape target directory
A crafted tar file can set a linkpath on every parsed entry via a PAX Global Extended Header, without any warning. Code that trusts linkpath from tar.Parser or tar.list can be tricked into reading or writing files, or creating symlinks, outside the intended directory.
8.0.0Am I affected?
You are affected if the installed version is older than 8.0.0. Check the version you have and update to 8.0.0 or later. The fixed version is verified against a vendor or advisory source.
Affected software and versions
| Package | Ecosystem | Affected | Fixed in |
|---|---|---|---|
node-tar | other | <8.0.0 | 8.0.0 |
A fixed version is shown only when it is verified against a vendor or advisory source.
Who should check
Anyone using the node-tar npm package before 8.0.0 on macOS, Windows, or Linux, where their own code reads entry linkpath values from tar.Parser or tar.list.
Expected outcome after remediation
Report the installed node-tar version and whether it is below 8.0.0, then say the package has been updated to 8.0.0 or later and any direct linkpath use is now validated.
Get the fix
FixLane has a reviewed fix procedure for this incident: a read-only check first, then the fix. Ask the Telegram bot, or connect an AI agent to the FixLane MCP server and call get_fix_prompt with incident id 5477 and your operating system.
Related node-tar incidents
- node-tar UnpackSync can hang and never finish extractionHigh8.0.0
- node-tar deadlock in async archive extraction (CVE-2026-140251)High8.0.0
- node-tar symlink escape when extracting crafted archivesHigh8.0.0
- node-tar symlink escape lets a tarball read and write files anywhereHigh8.0.0
- node-tar symlink escape lets crafted archives leave extraction rootHigh8.0.0
- node-tar symlink escape writes outside the extraction folderHigh8.0.0