tar Known Vulnerabilities & Fixes
tar has 18 known security vulnerabilities in npm (Node.js). Upgrade to version 7.5.21 or later to resolve all known issues. Data sourced from OSV, enriched with EPSS exploit probability and CISA KEV.
Recommended safe version: 7.5.21
Upgrading to 7.5.21 or later resolves all 18 known vulnerabilities in tar. Run: npm install tar@7.5.21
Is tar in your project?
Check if you're affected and upgrade to 7.5.21 to stay secure.
Security Summary
- 30 affected version ranges have been identified across these 18 advisories.
- 100% of known issues have a published fixed version.
- Highest exploit-probability (EPSS) score for tar: 15.1%.
- Remediation: npm update tar
Vulnerabilities
18 unique vulnerabilities — sorted by exploitation risk (KEV → EPSS → CVSS). Click a CVE/GHSA ID for full details. First disclosed Aug 3, 2021, most recently Jul 24, 2026 (1816 days apart).
| CVE / GHSA | Severity |
|---|---|
| CVE-2021-32804 Arbitrary File Creation/Overwrite due to insufficient absolute path sanitization
| HIGH |
| CVE-2021-32803 Arbitrary File Creation/Overwrite via insufficient symlink protection due to directory cache poisoning
| HIGH |
| CVE-2021-37712 Arbitrary File Creation/Overwrite via insufficient symlink protection due to directory cache poisoning using symbolic links
| HIGH |
| CVE-2021-37701 Arbitrary File Creation/Overwrite via insufficient symlink protection due to directory cache poisoning using symbolic links
| HIGH |
| CVE-2021-37713 Arbitrary File Creation/Overwrite on Windows via insufficient relative path sanitization
| HIGH |
| CVE-2024-28863 Denial of service while parsing a tar file due to lack of folders count validation
| MEDIUM |
| CVE-2026-24842 node-tar Vulnerable to Arbitrary File Creation/Overwrite via Hardlink Path Traversal
| HIGH |
| CVE-2026-59873 node-tar: Decompression/parse DoS via unlimited input
| CRITICAL |
| CVE-2026-59874 node-tar: Negative tar entry size causes infinite loop in archive replace
| HIGH |
| CVE-2026-59871 node-tar: Process crash via PAX numeric path type confusion
| MEDIUM |
| CVE-2026-73566 node-tar: Uncontrolled recursion in mapHas/filesFilter allows uncatchable stack-overflow DoS via crafted long-path tar with member selection
| HIGH |
| CVE-2026-59875 node-tar: Uncaught Exception DoS via NUL byte in PAX path/linkpath records
| MEDIUM |
| CVE-2026-29786 tar has Hardlink Path Traversal via Drive-Relative Linkpath
| HIGH |
| CVE-2026-23745 node-tar is Vulnerable to Arbitrary File Overwrite and Symlink Poisoning via Insufficient Path Sanitization
| HIGH |
| CVE-2026-23950 Race Condition in node-tar Path Reservations via Unicode Ligature Collisions on macOS APFS
| HIGH |
| CVE-2026-26960 Arbitrary File Read/Write via Hardlink Target Escape Through Symlink Chain in node-tar Extraction
| HIGH |
| CVE-2026-31802 node-tar Symlink Path Traversal via Drive-Relative Linkpath
| HIGH |
| CVE-2026-53655 node-tar applies PAX size override to intermediary GNU long-name/long-link headers, causing tar parser interpretation differential (file smuggling)
| MEDIUM |
About This Data
Vulnerability data for tar is sourced from the Open Source Vulnerability (OSV) database, aggregating reports from GitHub Advisory Database, NIST NVD, and ecosystem-specific sources.
CVSS (Common Vulnerability Scoring System) scores reflect exploitability and impact. EPSS (Exploit Prediction Scoring System) scores indicate the probability of exploitation within the next 30 days. Vulnerabilities marked with are listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.
Related npm (Node.js) Packages
Other packages in this ecosystem, ranked by shared vulnerabilities where available.
Check Your Dependencies
Scan your project to check if you're using a vulnerable version of tar.