# CVE-2026-140252: node-tar UnpackSync never completes sync-stream extraction after any failing entry (PEND/UNPEND imbalance)

- Severity: High 7.1 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/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
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-12-01T18:31:37.758Z
- Modified: 2026-12-01T23:17:40.650Z
- Also known as: GHSA-25mm-r35j-6hgm
- Weaknesses: CWE-667, CWE-696, CWE-911
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

node-tar is a tar archive manipulation library for Node.js. From 7.5.22 until 8.0.0, during synchronous stream extraction, UnpackSync performs entry work without calling PEND, but inherited nonfatal error handling calls UNPEND after an entry fails. The pending counter becomes negative, so the exactly-zero completion condition is never reached and the stream does not emit end, finish, or close. The default asynchronous API and file-based synchronous API are not affected. This issue is fixed in version 8.0.0.

(As written by CVE List.)

## Affected

- isaacs node-tar: >= 7.5.22, < 8.0.0
- tar (npm): from 7.5.22 before 8.0.0

## Every score

- GitHub_M: CVSS:4.0 7.1 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`

## References

- <https://github.com/isaacs/node-tar/security/advisories/GHSA-25mm-r35j-6hgm> (exploit, web)
- <https://github.com/isaacs/node-tar/commit/73b352e0010d6c99794ea7374800816a46d3bdb2> (web)
- <https://github.com/isaacs/node-tar/releases/tag/v8.0.0> (web)
- <https://github.com/isaacs/node-tar> (package)

## Sources

- CVE List: [CVE-2026-140252](https://www.cve.org/CVERecord?id=CVE-2026-140252), CVE Terms of Use, modified 2026-12-01
- GitHub Advisory Database: [GHSA-25mm-r35j-6hgm](https://github.com/advisories/GHSA-25mm-r35j-6hgm), CC-BY-4.0, modified 2026-12-01
- NVD: [CVE-2026-140252](https://nvd.nist.gov/vuln/detail/CVE-2026-140252), Public domain, modified 2026-12-01

---

Page: https://cve.day/CVE-2026-140252 · Whole record: https://cve.day/CVE-2026-140252.json · Rebuilt by cve.day 2026-12-01T23:32:17.183Z
