Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. tar
  4. ›
  5. CVE-2026-59874

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

July 20, 2026

A checksum-valid tar archive with a negative base-256 encoded entry size can make tar.replace() loop forever while scanning the existing archive. Applications that update attacker-controlled tar archives can have a worker process pinned indefinitely, causing denial of service.

References

  • github.com/advisories/GHSA-8x88-c5mf-7j5w
  • github.com/isaacs/node-tar/commit/9e78bf058b2c22dd4d52e00d8922d5c06fc2f7b5
  • github.com/isaacs/node-tar/releases/tag/v7.5.18
  • github.com/isaacs/node-tar/security/advisories/GHSA-8x88-c5mf-7j5w
  • nvd.nist.gov/vuln/detail/CVE-2026-59874

Code Behaviors & Features

Detect and mitigate CVE-2026-59874 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 7.5.18

Fixed versions

  • 7.5.18

Solution

Upgrade to version 7.5.18 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop')

Source file

npm/tar/CVE-2026-59874.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 08 Aug 2026 00:19:20 +0000.