high7.5
CVE-2026-59874
node-tar: Negative tar entry size causes infinite loop in archive replace
Impact
node-tar is a tar archive manipulation library for Node.js. Prior to 7.5.18, tar.replace accepts a checksum-valid tar header with a negative base-256 encoded entry size, causing the archive scanner to make no progress while repeatedly parsing the same header. This issue is fixed in version 7.5.18.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | tar | <= 7.5.17 | 7.5.18 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Isaacs | Tar | before 7.5.18 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/advisories/GHSA-8x88-c5mf-7j5w
- https://github.com/isaacs/node-tar/security/advisories/GHSA-8x88-c5mf-7j5w
- https://nvd.nist.gov/vuln/detail/CVE-2026-59874
- https://github.com/isaacs/node-tar/commit/9e78bf058b2c22dd4d52e00d8922d5c06fc2f7b5
- https://github.com/isaacs/node-tar/releases/tag/v7.5.18