What’s Vulnerable › Vulnerabilities

CVE-2026-59874: node-tar: Negative tar entry size causes infinite loop in archive replace

Description

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 products

How to fix

Upgrade to a fixed version: isaacs node-tar 7.5.18; Npm Tar 7.5.18. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-59874 or the next vulnerability affects your stack