CVE-2026-140233: node-tar: PAX size precedence mismatch smuggles filtered entries during @archive repacking
node-tar is a tar archive manipulation library for Node.js. From 7.5.22 until 8.0.0, an application that repacks attacker-controlled tar input through the documented archive-file input feature route and relies on an entry filter or inspection can be bypassed by conflicting local and global PAX size values. ReadEntry.size can disagree with the body bytes copied to the output, allowing body bytes to become an additional output member that the filter never inspected. Ordinary extraction is not the claimed filter-bypass surface. This issue is fixed in version 8.0.0.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 8.0.0
Event History
Frequently Asked Questions
Which applications are exposed to this issue?
Applications using node-tar from 7.5.22 up to, but not including, 8.0.0 are exposed only if they repack attacker-controlled tar archives through the documented archive-file input route and rely on entry filtering or inspection to control what is emitted.
What does an attacker need to provide?
An attacker needs to supply a crafted tar archive with conflicting local and global PAX size values. The mismatch can cause bytes copied into the repacked output to form an additional archive member that was not inspected by the application’s filter.
Is ordinary tar extraction affected by the described bypass?
No. Ordinary extraction is not the claimed filter-bypass surface; the described issue concerns repacking archives while relying on filtering or inspection.
How can this be remediated?
Upgrade node-tar to version 8.0.0, which fixes the issue.