Skip to main content
npm (Node.js)

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.

18 Vulnerabilities

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.

18
Total
1
Critical
13
High
4
Medium
0
Low

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 / GHSASeverity
CVE-2021-32804
Arbitrary File Creation/Overwrite due to insufficient absolute path sanitization
Affected
All versions
Fixed in
3.2.2, 4.4.14, 5.0.6 (+1 more)
HIGH
CVE-2021-32803
Arbitrary File Creation/Overwrite via insufficient symlink protection due to directory cache poisoning
Affected
All versions
Fixed in
3.2.3, 4.4.15, 5.0.7 (+1 more)
HIGH
CVE-2021-37712
Arbitrary File Creation/Overwrite via insufficient symlink protection due to directory cache poisoning using symbolic links
Affected
All versions
Fixed in
4.4.18, 5.0.10, 6.1.9
HIGH
CVE-2021-37701
Arbitrary File Creation/Overwrite via insufficient symlink protection due to directory cache poisoning using symbolic links
Affected
All versions
Fixed in
4.4.16, 5.0.8, 6.1.7
HIGH
CVE-2021-37713
Arbitrary File Creation/Overwrite on Windows via insufficient relative path sanitization
Affected
All versions
Fixed in
4.4.18, 5.0.10, 6.1.9
HIGH
CVE-2024-28863
Denial of service while parsing a tar file due to lack of folders count validation
Affected
All versions
Fixed in
6.2.1
MEDIUM
CVE-2026-24842
node-tar Vulnerable to Arbitrary File Creation/Overwrite via Hardlink Path Traversal
Affected
All versions
Fixed in
7.5.7
HIGH
CVE-2026-59873
node-tar: Decompression/parse DoS via unlimited input
Affected
All versions
Fixed in
7.5.19
CRITICAL
CVE-2026-59874
node-tar: Negative tar entry size causes infinite loop in archive replace
Affected
All versions
Fixed in
7.5.18
HIGH
CVE-2026-59871
node-tar: Process crash via PAX numeric path type confusion
Affected
All versions
Fixed in
7.5.18
MEDIUM
CVE-2026-73566
node-tar: Uncontrolled recursion in mapHas/filesFilter allows uncatchable stack-overflow DoS via crafted long-path tar with member selection
Affected
All versions
Fixed in
7.5.21
HIGH
CVE-2026-59875
node-tar: Uncaught Exception DoS via NUL byte in PAX path/linkpath records
Affected
All versions
Fixed in
7.5.17
MEDIUM
CVE-2026-29786
tar has Hardlink Path Traversal via Drive-Relative Linkpath
Affected
All versions
Fixed in
7.5.10
HIGH
CVE-2026-23745
node-tar is Vulnerable to Arbitrary File Overwrite and Symlink Poisoning via Insufficient Path Sanitization
Affected
All versions
Fixed in
7.5.3
HIGH
CVE-2026-23950
Race Condition in node-tar Path Reservations via Unicode Ligature Collisions on macOS APFS
Affected
All versions
Fixed in
7.5.4
HIGH
CVE-2026-26960
Arbitrary File Read/Write via Hardlink Target Escape Through Symlink Chain in node-tar Extraction
Affected
All versions
Fixed in
7.5.8
HIGH
CVE-2026-31802
node-tar Symlink Path Traversal via Drive-Relative Linkpath
Affected
All versions
Fixed in
7.5.11
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)
Affected
All versions
Fixed in
7.5.16
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.

Data from OSV DatabaseUpdated daily200K+ vulnerabilities indexed