Description
The tar package before 2.0.0 for Node.js allows remote attackers to write to arbitrary files via a symlink attack in an archive.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | node-tar | 2.2.1-1 | — |
| Debian 13 | node-tar | 2.2.1-1 | — |
| Debian 12 | node-tar | 2.2.1-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 16.04 LTS | node-tar | 1.0.3-2ubuntu0.1~esm1 | USN-4777-1 |
| Ubuntu Pro 14.04 LTS | node-tar | 0.1.18-1ubuntu0.1~esm1 | USN-4777-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | tar | < 2.0.0 | 2.0.0 | GHSA-gfjr-3jmm-4g9v |
Advisories 1
- USN-4777-1 node-tar vulnerability Ubuntu Security Notices (USN) · Jun 29, 2026