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

- Severity: High 8.7 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.43%, higher than 39% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-08T15:23:47.527Z
- Modified: 2026-10-25T17:10:00.197Z
- Also known as: GHSA-8x88-c5mf-7j5w
- Weaknesses: CWE-835
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- isaacs node-tar: < 7.5.18
- tar (npm): before 7.5.18
- isaacs tar: before 7.5.18

## Every score

- GitHub_M: CVSS:4.0 8.7 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/isaacs/node-tar/security/advisories/GHSA-8x88-c5mf-7j5w> (exploit, vendor-advisory, web)
- <https://github.com/isaacs/node-tar/commit/9e78bf058b2c22dd4d52e00d8922d5c06fc2f7b5> (patch, web)
- <https://github.com/isaacs/node-tar/releases/tag/v7.5.18> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-59874> (advisory)
- <https://github.com/isaacs/node-tar> (package)

## Sources

- CVE List: [CVE-2026-59874](https://www.cve.org/CVERecord?id=CVE-2026-59874), CVE Terms of Use, modified 2026-07-08
- GitHub Advisory Database: [GHSA-8x88-c5mf-7j5w](https://github.com/advisories/GHSA-8x88-c5mf-7j5w), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-59874](https://nvd.nist.gov/vuln/detail/CVE-2026-59874), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-59874 · Whole record: https://cve.day/CVE-2026-59874.json · Rebuilt by cve.day 2026-11-25T22:59:27.392Z
