CVE-2026-59874: Infinite-loop denial of service in node-tar tar.replace()
- Vendor
- Isaacs
CVE-2026-59874 is an infinite-loop vulnerability in node-tar, a tar archive manipulation library for Node.js, affecting versions before 7.5.18. The tar.replace() function accepts a checksum-valid archive header containing a negative base-256 encoded entry size. This causes the archive scanner to repeatedly parse the same header without advancing, indefinitely hanging the processing worker and causing denial of service. Extraction-only workflows are not affected.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Processing a malicious existing archive through tar.replace() can indefinitely hang a worker process and disrupt application availability. Service-wide impact depends on worker isolation and how archive operations are integrated into the application. No confidentiality or integrity impact is established.
Mitigation
If you can’t patch tonight, do this now.
Until patched, avoid calling tar.replace() on attacker-controlled or untrusted existing archives. If processing is unavoidable, validate archives before processing and reject headers containing negative entry sizes. Isolate archive replacement operations to limit denial-of-service impact.
Remediation
Patch, then assume compromise.
Upgrade the npm tar package to version 7.5.18 or later. For products bundling node-tar, apply the vendor-supported update containing the fix or an equivalent backported patch.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2026-59874 exploited in the wild?
- As of Nov 9, 2026, Mallory has no reports of CVE-2026-59874 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-59874?
- Yes. As of Nov 9, 2026, Mallory has reports of a public exploit for CVE-2026-59874.
- Is there a patch for CVE-2026-59874?
- Upgrade the npm tar package to version 7.5.18 or later. For products bundling node-tar, apply the vendor-supported update containing the fix or an equivalent backported patch.
- What products are affected by CVE-2026-59874?
- Isaacs Tar.
- How severe is CVE-2026-59874?
- CVE-2026-59874 has a CVSS v4 score of 8.7 (High) and an EPSS score of 0.43% (38th percentile) as of Nov 9, 2026.
Recent activity
38 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.