Install
tar
tar for JavaScript
8.1.2Latest, 3 Dec 2026
517MDownloads, last month
0Advisories on the latest
40Advisories, all versions
BlueOak-1.0.0Licence
931Stars
6.2/10OpenSSF Scorecard
Source · Homepage · Ask AI Mode · · Markdown
Known advisories
| Severity | Advisory | Fix | Published |
|---|---|---|---|
| High | node-tar: Symlink containment bypass via chained symlinks lets tar.x() create links that resolve outside the extraction directory (regression since 7.5.5) CVE-2026-140250 | Fixed in 8.0.0 | 2 Dec 2026 |
| High | node-tar: Symlink target escapes the extraction directory through an in-archive symlink chain CVE-2026-140249 | Fixed in 8.0.0 | 2 Dec 2026 |
| High | node-tar: Nested symlink target can escape node-tar extraction root CVE-2026-140248 | Fixed in 8.0.0 | 2 Dec 2026 |
| High | node-tar crashes the process with an uncaught exception on a 4-byte zstd magic header when the Node runtime lacks native zstd CVE-2026-140241 | Fixed in 8.0.0 | 2 Dec 2026 |
| High | node-tar: A small archive exhausts memory or CPU through path-reservation bookkeeping CVE-2026-140240 | Fixed in 8.0.2 | 2 Dec 2026 |
| High | node-tar async extraction deadlocks permanently when an entry's linkpath is a hierarchical relative of its own path CVE-2026-140251 | Fixed in 8.0.0 | 2 Dec 2026 |
| High | node-tar: Decompression within the ratio limit is buffered in memory without backpressure, and zero-size entries queue without bound CVE-2026-140231 | Fixed in 8.0.0 | 2 Dec 2026 |
| High | node-tar: Global PAX extended header injects attacker-controlled linkpath into tar.Parser entries, bypassing strict-mode validation CVE-2026-140239 | Fixed in 8.0.0 | 2 Dec 2026 |
| High | node-tar: Symlink linkpath escape check is lexical: '..' after an in-archive symlink creates symlinks outside the extraction directory CVE-2026-140247 | Fixed in 8.0.0 | 2 Dec 2026 |
| High | node-tar: SymbolicLink extraction escapes the extraction directory on non-Windows hosts via a backslash separator differential CVE-2026-140246 | Fixed in 8.0.0 | 2 Dec 2026 |
| High | node-tar: Symlink linkpath containment bypass via entry paths ending in '/.' CVE-2026-140245 | Fixed in 8.0.0 | 2 Dec 2026 |
| High | node-tar: Symlink containment bypass via nested symlink + '..' (lexical linkpath check) CVE-2026-140244 | Fixed in 8.0.0 | 2 Dec 2026 |
| High | node-tar: Newline injection in PAX extended-header records enables entry-attribute forgery (path overwrite → npm postinstall RCE on Windows) CVE-2026-140238 | Fixed in 8.0.0 | 2 Dec 2026 |
| Moderate | node-tar: ReadEntry pending PAX size reapplication permits metadata-body file smuggling CVE-2026-140237 | Fixed in 8.0.0 | 2 Dec 2026 |
| High | node-tar: Non-finite PAX size (Infinity) bypasses validation, causing extraction entry loss and an uncaught exception when re-packing CVE-2026-140242 | Fixed in 7.5.24 | 2 Dec 2026 |
In the news
- tar and gzip without the usual mistakes: back up a folder, skip the junk, verify the archive dev.to, 2 Dec 2026
- Writing a TAR archive in the browser in ~100 lines of TypeScript dev.to, 30 Nov 2026
- rpmbuild for a single tar file to extract to a dir arstechnica.com, 19 Nov 2026
- Stupid tar Tricks linuxjournal.com, 19 Nov 2026
- uv 0.13's tar-codec backend installs a 6,000-file sdist in 2.5 seconds instead of 3.8 dev.to, 15 Nov 2026
On Hacker News
- Rga: Ripgrep, but also search in PDFs, E-Books, Office documents, zip, tar.gz 684 points, 139 comments, 2 Dec 2020
- Why are tar.xz files 15x smaller when using Python's tar compared to macOS tar? 505 points, 150 comments, 14 Mar 2021
- The tar archive format, and why GNU tar extracts in quadratic time 317 points, 133 comments, 23 Jul 2022
- Show HN: Rga: ripgrep, but also search in PDFs, Office documents, zip, tar.gz 284 points, 65 comments, 16 Jun 2019
Sources: npm, deps.dev (CC BY 4.0), OSV. Last checked 4 Dec 2026.