home / blog
2026-12-03 · high
CVE-2026-140242: Critical vulnerability in node-tar causes file loss
CVE-2026-140242: vulnerability in node-tar allows bypass of validation with size=Infinity causing entry loss.

CVE-2026-140242 is a vulnerability in the node-tar library, used for tar archive manipulation in Node.js. The flaw allows bypassing validation checks using a PAX record with size=Infinity, causing loss of all subsequent entries in the archive during extraction and generating an uncaught exception during re-packing operations.
The vulnerability has a CVSS score of 7.1, classifying it as high severity. It was officially published on December 1, 2026, and there are reports on GitHub regarding the existence of proof of concept and exploit code for this vulnerability.
All organizations using node-tar in their technology stack should immediately update to version 7.5.24 or later. It is crucial to check dependencies in Node.js projects to identify any use of vulnerable versions. For systems that cannot be updated immediately, mitigations such as filters for PAX record validation during archive extraction can be implemented.
At a glance
- What
- Vulnerability in node-tar that allows bypass of validation with a non-finite PAX size (Infinity), causing entry loss during extraction.
- Severity
- High (CVSS 7.1)
- Affected versions
- node-tar versions from 7.0.0 until 7.5.24
- Fix
- Version 7.5.24
- Status
- Published on 2026-12-01
- Action
- Update node-tar to version 7.5.24 or later
Sources: NVD, CVE-2026-140242