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

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

On Hacker News

Sources: npm, deps.dev (CC BY 4.0), OSV. Last checked 4 Dec 2026.