npmWorst: Critical21 advisories

tar: known vulnerabilities

tar has 21 reviewed security advisories in the GitHub Advisory Database — 1 critical, 15 high, 5 moderate. The most recent was published 2026-08-13. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the tar versions running across your servers, containers and images, and ranks what to patch first.

How to fix tar

Upgrade tar to a release at or above the fixed version shown for each advisory below. For npm:

npm install tar@7.5.21 (or run npm audit fix)

SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.

Advisories (21)

node-tar: Uncontrolled recursion in mapHas/filesFilter allows uncatchable stack-overflow DoS via crafted long-path tar with member selection High 7.5 CWE-400 CWE-674 — Affected: before 7.5.21. Fixed in 7.5.21. Published 2026-08-13. GHSA-r292-9mhp-454m · CVE-2026-73566
node-tar: Decompression/parse DoS via unlimited input Critical 7.5 CWE-770 — Affected: before 7.5.19. Fixed in 7.5.19. Published 2026-07-08. GHSA-23hp-3jrh-7fpw · CVE-2026-59873
node-tar: Negative tar entry size causes infinite loop in archive replace High 7.5 CWE-835 — Affected: before 7.5.18. Fixed in 7.5.18. Published 2026-07-08. GHSA-8x88-c5mf-7j5w · CVE-2026-59874
node-tar: Uncaught Exception DoS via NUL byte in PAX path/linkpath records Moderate 5.3 CWE-248 — Affected: before 7.5.17. Fixed in 7.5.17. Published 2026-07-08. GHSA-gvwx-54wh-qm9j · CVE-2026-59875
node-tar: Process crash via PAX numeric path type confusion Moderate 5.3 CWE-704 — Affected: before 7.5.18. Fixed in 7.5.18. Published 2026-07-08. GHSA-w8wr-v893-vjvp · CVE-2026-59871
node-tar applies PAX size override to intermediary GNU long-name/long-link headers, causing tar parser interpretation differential (file smuggling) Moderate CWE-436 — Affected: before 7.5.16. Fixed in 7.5.16. Published 2026-06-15. GHSA-vmf3-w455-68vh · CVE-2026-53655
node-tar Symlink Path Traversal via Drive-Relative Linkpath High CWE-22 — Affected: before 7.5.11. Fixed in 7.5.11. Published 2026-03-10. GHSA-9ppj-qmqm-q256 · CVE-2026-31802
tar has Hardlink Path Traversal via Drive-Relative Linkpath High CWE-22 CWE-59 — Affected: before 7.5.10. Fixed in 7.5.10. Published 2026-03-07. GHSA-qffp-2rhf-9h96 · CVE-2026-29786
Arbitrary File Read/Write via Hardlink Target Escape Through Symlink Chain in node-tar Extraction High 7.1 CWE-22 — Affected: before 7.5.8. Fixed in 7.5.8. Published 2026-02-20. GHSA-83g3-92jg-28cx · CVE-2026-26960
node-tar Vulnerable to Arbitrary File Creation/Overwrite via Hardlink Path Traversal High 8.2 CWE-22 CWE-59 — Affected: before 7.5.7. Fixed in 7.5.7. Published 2026-01-28. GHSA-34x7-hfp2-rc4v · CVE-2026-24842
Race Condition in node-tar Path Reservations via Unicode Ligature Collisions on macOS APFS High 8.8 CWE-176 CWE-367 — Affected: before 7.5.4. Fixed in 7.5.4. Published 2026-01-20. GHSA-r6q2-hw4h-h46w · CVE-2026-23950
node-tar is Vulnerable to Arbitrary File Overwrite and Symlink Poisoning via Insufficient Path Sanitization High CWE-22 — Affected: before 7.5.3. Fixed in 7.5.3. Published 2026-01-16. GHSA-8qq5-rm4j-mr97 · CVE-2026-23745
node-tar has a race condition leading to uninitialized memory exposure Moderate CWE-362 — Affected: from 7.5.1 up to 7.5.2. Fixed in 7.5.2. Published 2025-10-30. GHSA-29xp-372q-xqph · CVE-2025-64118
Denial of service while parsing a tar file due to lack of folders count validation Moderate 6.5 CWE-400 — Affected: before 6.2.1. Fixed in 6.2.1. Published 2024-03-21. GHSA-f5x3-32g6-xq36 · CVE-2024-28863
Arbitrary File Creation/Overwrite on Windows via insufficient relative path sanitization High 8.2 CWE-22 — Affected: from 6.0.0 up to 6.1.9. Fixed in 6.1.9. Published 2021-08-31. GHSA-5955-9wpr-37jh · CVE-2021-37713
Arbitrary File Creation/Overwrite via insufficient symlink protection due to directory cache poisoning using symbolic links High 8.2 CWE-22 CWE-59 — Affected: from 6.0.0 up to 6.1.7. Fixed in 6.1.7. Published 2021-08-31. GHSA-9r2w-394v-53qc · CVE-2021-37701
Arbitrary File Creation/Overwrite via insufficient symlink protection due to directory cache poisoning using symbolic links High 8.2 CWE-22 CWE-59 — Affected: from 6.0.0 up to 6.1.9. Fixed in 6.1.9. Published 2021-08-31. GHSA-qq89-hq3f-393p · CVE-2021-37712
Arbitrary File Creation/Overwrite due to insufficient absolute path sanitization High 8.2 CWE-22 — Affected: from 6.0.0 up to 6.1.1. Fixed in 6.1.1. Published 2021-08-03. GHSA-3jfq-g458-7qm9 · CVE-2021-32804
Arbitrary File Creation/Overwrite via insufficient symlink protection due to directory cache poisoning High 8.2 CWE-22 CWE-23 CWE-59 — Affected: from 6.0.0 up to 6.1.2. Fixed in 6.1.2. Published 2021-08-03. GHSA-r628-mhmh-qjhw · CVE-2021-32803
Symlink Arbitrary File Overwrite in tar High 7.5 CWE-59 — Affected: before 2.0.0. Fixed in 2.0.0. Published 2017-10-24. GHSA-gfjr-3jmm-4g9v · CVE-2015-8860

Find tar across your fleet

Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA, CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month. Start free.