CVE-2026-140237

NameCVE-2026-140237
Descriptionnode-tar is a tar archive manipulation library for Node.js. From 7.0.0 until 8.0.0, readEntry: pending PAX size reapplication permits metadata-body file smuggling after the 7.5.16 fix. Applications that inspect attacker-controlled tar archives with a parser that correctly consumes the second PAX metadata body, then extract them with node-tar, can be affected. A member absent from the inspected member set is treated by node-tar as a real entry and can create or truncate a file inside the configured extraction directory. This can bypass archive member allowlists, malware scanning, or policy checks when the inspection and extraction layers use different tar implementations. This issue is fixed in version 8.0.0.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
node-tar (PTS)bookworm6.1.13+~cs7.0.5-1vulnerable
bookworm (security)6.1.13+~cs7.0.5-1+deb12u1vulnerable
trixie6.2.1+~cs7.0.8-1+deb13u1vulnerable
forky, sid7.5.22+~4.0.1-1vulnerable

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
node-tarsource(unstable)7.5.24+~4.0.1-1

Notes

https://github.com/isaacs/node-tar/security/advisories/GHSA-p96f-8xj2-g85p
https://github.com/isaacs/node-tar/commit/f351e5b4a8916bc8c8f821d0ad926a17d26ea237 (v8.0.0)

Search for package or bug name: Reporting problems