79% vs 51%: independent neobanks lag on app security. Read the report

Deep Dive

Deep Dive

node-tar 8 Fixes 26 CVEs, Including npm RCE (CVE-2026-140238)

node-tar before 8.0.0 extracts crafted archives outside the target and enables npm postinstall RCE on Windows. All 26 CVEs are fixed in 8.0.2.

TL;DR

  • node-tar before 8.0.0 resolves .. in a symlink target as text and splits PAX records on newlines. A crafted archive can write files where its headers do not declare them, and npm on Windows can run an injected postinstall.
  • Any Node.js service that extracts attacker-supplied archives with node-tar is exposed. So is npm on Windows when dependency lifecycle scripts are allowed. The tar package had 113,520,680 weekly npm downloads in the week of 2026-11-24.
  • GitHub, the CVE Numbering Authority, rates 25 of the 26 CVEs High and one Medium. CVE-2026-140238 scores CVSS v4.0 7.2, and CISA's Vulnrichment marks it Exploitation: poc. No in-the-wild exploitation is reported, and the batch is not in CISA KEV as of 2026-12-02.
  • Upgrade to tar 8.0.2 or later, which requires Node.js 22 or later. tar 8.0.5 also fixes 7 advisories without a CVE ID. tar 8 is a breaking release, so test before forcing it under older dependencies. npm 12.2.3 still bundles tar 7.5.22, so keep npm installs off untrusted packages. See "How do I fix it?".

Am I affected?

You are exposed when all of these conditions hold:

  • A Node.js application calls tar.x(), tar.extract(), tar.list(), or the Unpack or Parser class on an archive that an attacker can influence.
  • The installed tar version is in an affected range in the version table.
  • For the symlink flaws, the application later reads or writes a path under the extraction directory.
  • For the npm postinstall path, npm runs on Windows with dependency lifecycle scripts enabled and extracts the attacker's archive with strip: 1.

The parser flaws also affect tar.list(), which reads PAX headers without extracting files. Depending on the CVE, the deadlocks and resource exhaustion affect the async API, the sync API or both.

Branch Affected versions Fixed version
8.x 8.0.0 and 8.0.1 (CVE-2026-140240 only) 8.0.2; 8.0.5 for the advisories without a CVE ID
7.x 7.0.0 through 7.5.23: each version is affected by at least one of the 26; 7.5.24: 25 of 26 8.0.2; 7.5.24 fixes only CVE-2026-140242
6.x and earlier The 13 CVEs whose range starts before 7.0.0 8.0.2
CVE Severity Affected versions Fixed version Flaw
CVE-2026-140252 High >= 7.5.22, < 8.0.0 8.0.0 Sync extraction never completes after a failed entry
CVE-2026-140251 High >= 7.5.22, < 8.0.0 8.0.0 Async deadlock on a hierarchical linkpath
CVE-2026-140250 High >= 7.5.5, < 8.0.0 8.0.0 Chained symlink resolves outside the extraction root
CVE-2026-140249 High >= 7.5.5, < 8.0.0 8.0.0 Symlink chain escapes the extraction root
CVE-2026-140248 High >= 7.5.22, < 8.0.0 8.0.0 Nested symlink target escapes the root
CVE-2026-140247 High < 8.0.0 8.0.0 Lexical .. check on a linkpath
CVE-2026-140246 High < 8.0.0 8.0.0 Backslash separator differential on non-Windows hosts
CVE-2026-140245 High >= 7.5.5, < 8.0.0 8.0.0 Entry path ending in /. bypasses the linkpath check
CVE-2026-140244 High < 8.0.0 8.0.0 Nested symlink plus .. bypasses the lexical check
CVE-2026-140243 High >= 7.5.5, < 8.0.0 8.0.0 Trailing /. in the entry path lets a symlink escape the root
CVE-2026-140242 High >= 7.0.0, < 7.5.24 7.5.24 Non-finite PAX size
CVE-2026-140241 High >= 7.5.22, < 8.0.0 8.0.0 Uncaught exception on a zstd header
CVE-2026-140240 High < 8.0.2 8.0.2 Path-reservation memory and CPU exhaustion
CVE-2026-140239 High < 8.0.0 8.0.0 Global PAX header injects a linkpath
CVE-2026-140238 High < 8.0.0 8.0.0 Newline in PAX forges the path; npm postinstall on Windows
CVE-2026-140237 Medium >= 7.0.0, < 8.0.0 8.0.0 PAX size reapplication permits entry smuggling
CVE-2026-140236 High < 8.0.0 8.0.0 PAX size framing differential
CVE-2026-140235 High >= 7.5.0, < 8.0.0 8.0.0 PAX records split on newlines
CVE-2026-140234 High < 8.0.0 8.0.0 NUL-byte name truncation
CVE-2026-140233 High >= 7.5.22, < 8.0.0 8.0.0 PAX size precedence smuggles filtered entries when repacking
CVE-2026-140232 High >= 7.5.17, < 8.0.0 8.0.0 NUL byte survives sanitization and crashes async extraction
CVE-2026-140231 High < 8.0.0 8.0.0 Decompressed data buffered without backpressure
CVE-2026-140230 High < 8.0.0 8.0.0 Deep linkpath bypasses maxDepth and exhausts memory
CVE-2026-140229 High < 8.0.0 8.0.0 Decompression allocates before maxDecompressionRatio applies
CVE-2026-140119 High < 8.0.0 8.0.0 Deep linkpath exhausts the heap in async extraction
CVE-2026-140118 High < 8.0.0 8.0.0 Uncapped linkpath drives quadratic path-reservation memory

node-tar also published 7 advisories without a CVE ID, fixed up to 8.0.5. Two medium-severity symlink escapes are closed by the same 8.0.0 symlink fix. Five low-severity parser differentials are fixed in 8.0.3, 8.0.4 and 8.0.5.

The advisories credit BlueN0r for the chained-symlink bypass, Mojashi for the PAX newline forgery, w116tjb for the resource and PAX framing issues and president-xd for several parser and extraction failures. The fix commits are by node-tar maintainer Isaac Z. Schlueter.

Check the tar version in each project and in the npm that runs the install:

npm ls tar
node -p "require('tar/package.json').version"
grep -n '"node_modules/tar"' package-lock.json

Check global and alternative package managers:

npm ls -g tar
pnpm why tar
yarn why tar

Check the tar copy bundled inside npm:

NPM_ROOT="$(npm root -g)"
node -p "require('${NPM_ROOT}/npm/node_modules/tar/package.json').version"

In a container, run the same commands inside the running container:

docker exec <container> npm ls tar

The last check reads the copy npm uses for its own installs. npm 12.2.3 declares tar: ^7.5.22, and its published tarball contains 7.5.22.

How do I fix it?

Upgrade tar to 8.0.2 or later, and move to Node.js 22 or later first because tar 8 declares node >=22. The current release is 8.0.5.

  1. Upgrade Node.js to 22, 24 or 26. The 8.0.0 release notes drop support for Node.js older than 22.
  2. Install the fixed tar in the application:
npm install tar@8.0.5
  1. If tar is a transitive dependency, force it with an override:
{
  "overrides": {
    "tar": "8.0.5"
  }
}

Run npm install after the change. pnpm uses pnpm.overrides and Yarn uses resolutions for the same purpose.

Forcing tar 8 under a dependency written for tar 6 or 7 can break that dependency at runtime. tar 8 removes callbacks and Node.js streams in favor of promises and web streams, and removes the sync option in favor of extractSync, createSync and the other sync functions. ReadEntry, WriteEntry, Parser, Pack and Unpack are no longer streams. Run the tests of every package that uses tar after adding the override, and prefer upgrading the dependency that pulls in tar to a release built for tar 8. Staying on the 7.x line is not a fix: 7.5.24 closes only CVE-2026-140242, and the other 25 CVEs are fixed only in tar 8.

  1. Commit the updated lockfile and rebuild. Check every dependency tree with npm ls tar; a transitive copy can stay behind.
  2. Recreate container images rather than only pulling them, then run the version check inside the new container.
  3. Update npm itself when a release ships tar 8.0.2 or later. npm is a separate copy; changing the application dependency does not change the tar inside node_modules/npm.

npm 12 blocks dependency lifecycle scripts by default unless a package is allowed with allowScripts. That removes the postinstall step on npm 12, but it does not stop the PAX path overwrite or the symlink flaws. Older npm versions and projects that allow scripts remain exposed to the postinstall path.

If you cannot upgrade:

  1. Extract untrusted archives in a disposable container or virtual machine, as an unprivileged user, with no host mounts and no credentials.
  2. Reject archives that contain symlink entries or PAX extended headers when your format does not need them. A pre-parse check must read PAX records by their declared byte length.
  3. Keep npm installs of untrusted packages on Windows inside that disposable environment. --ignore-scripts blocks the postinstall step but not the file overwrite.
  4. Do not treat tar 7.5.24 as a complete fix. It closes CVE-2026-140242 only; the symlink and PAX newline flaws remain in the 7.x line.

What is the root cause?

node-tar checked where an entry would land by normalizing text. It also read PAX attributes by splitting text on newlines. An archive can shape both. The first mistake lets a symlink chain resolve outside the extraction directory. The second lets a newline inside a PAX value create a new attribute record.

node-tar is the tar implementation bundled with npm and used by many build and release tools. It parses a tar archive into entries, then decides the on-disk path for each entry. PAX extended headers carry attributes such as path, linkpath and size for the entry that follows them.

In src/pax.ts, the parser split the PAX body on every newline and checked each line on its own. The PAX format frames a record by the byte length at the start of the record, so a newline inside a value is allowed:

const parseKV = (str: string) =>
  str
    .replace(/\n$/, '')
    .split('\n')
    .reduce(parseKVLine, Object.create(null))

const parseKVLine = (set, line) => {
  const n = parseInt(line, 10)
  // XXX Values with \n in them will fail this.
  if (n !== Buffer.byteLength(line) + 1) {
    return set
  }
  line = line.slice((n + ' ').length)
  const kv = line.split('=')
  // ...
}

The parser then applied the result to the entry. ReadEntry#slurp copied every key except a global path with Object.assign:

Object.assign(
  this,
  Object.fromEntries(
    Object.entries(ex).filter(([k, v]) => {
      return !(v === null || v === undefined || (k === 'path' && gex))
    }),
  ),
)

A forged path or linkpath record therefore overrode the real header value. The creation side wrote values without escaping in encodeField, so an archive made by node-tar from a directory with a crafted filename carried the same forged record.

The symlink check made the same mistake in a different place. [STRIPABSOLUTEPATH] rejected .. in a file path, but for a linkpath it joined the entry directory and the target and normalized the result as text:

const entryDir = path.posix.dirname(entry.path)
const resolved = path.posix.normalize(
  path.posix.join(entryDir, parts.join('/')),
)
// If the resolved path escapes (starts with ..), reject it
if (resolved.startsWith('../') || resolved === '..') {
  this.warn(
    'TAR_ENTRY_ERROR',
    `${field} escapes extraction directory`,
    {
      entry,
      [field]: p,
    },
  )
  return false
}

[SYMLINK] ran a second check through path.resolve, which also removes .. before [ENSURE_NO_SYMLINK] looks at each component:

const parts = normalizeWindowsPath(
  path.relative(
    this.cwd,
    path.resolve(
      path.dirname(String(entry.absolute)),
      String(entry.linkpath),
    ),
  ),
).split('/')

Both checks assumed a tar path was not a filesystem path. That assumption fails once an earlier entry has created a real symlink. For sub/up -> .. and esc -> sub/up/.., the text check resolves sub/up/.. to sub, which is inside the root. The kernel follows sub/up first and then .., so esc points at the parent of the extraction directory.

How is it exploited?

An attacker needs to supply the archive, or a filename that ends up in an archive, and the application must extract it with an affected version.

The PAX path-overwrite path:

  1. The attacker creates a file whose name contains a newline and a forged PAX record, such as é\n21 path=package.json\n. The file sits under safe/ inside the archive.
  2. node-tar reads the PAX body by newline and accepts the forged path=package.json record as a separate attribute.
  3. ReadEntry#slurp copies that value onto the entry, so the entry's path becomes package.json.
  4. Extraction writes the content at the extraction root, outside the safe/ directory the archive declared.
  5. On Windows, npm extracts package tarballs with strip: 1. The Windows path normalization turns an injected x\package.json into two components, and strip removes x, leaving package.json. The file overwrites the installed package's manifest, and npm runs the injected postinstall.

The advisory includes a self-contained proof of concept and a Windows npm kit in its public bundle. It reports the postinstall execution on Windows Server 2022 with Node.js 22.14.0 and npm 10.9.2. The same record can overwrite other paths under the extraction target without strip.

The symlink path needs two entries:

  1. The archive creates a directory sub/ and a symlink sub/up whose target is ...
  2. It creates esc whose target is sub/up/... Both lexical checks see . or sub, inside the root.
  3. The kernel resolves sub/up to the extraction directory and then applies .., so esc points at the parent.
  4. The application reads or writes through esc after extraction, outside the intended directory. node-tar rejects writing a file or hardlink through the escaping link from inside the same archive, so the impact appears when application code uses the extracted path.

The other advisories cover related parser cases. They include a NUL byte that survives truncation, an infinite PAX size, and a global PAX linkpath applied to later entries. A PAX size can also change the framing of the next entry. Their PoCs are in the same advisories.

How does the attack flow?

A crafted PAX header smuggles a forged path record past the newline-based parser. The extracted file lands where the archive never declared it. On Windows npm, that can become an injected postinstall.

flowchart LR A["Attacker supplies archive"] --> B["PAX parser splits records on newline"] B --> C["Forged path record accepted"] C --> D["entry.path becomes package.json"] D --> E["File written outside declared subtree"] E --> F["Windows npm runs injected postinstall"]

What can an attacker do?

The PAX flaw gives an attacker an arbitrary file write under the extraction target, and a path overwrite outside the subtree the archive declared. The attacker can replace configuration, source, or manifest files that the application reads after extraction.

On Windows, the npm path can end in code execution as the user running npm install. That needs npm to extract the attacker's package with strip: 1, dependency lifecycle scripts to be enabled, and the attacker to control the archive or a filename inside it. The advisory verified this chain on npm 10.9.2.

The symlink flaw lets an attacker create a link that resolves outside the extraction root. The impact requires the application to read or write through that link after extraction. A service that only unpacks an archive and never touches the paths afterwards is not affected by the symlink escape in the same way.

The resource flaws let a small archive exhaust memory or CPU through path reservations or decompression, deadlock an async extraction, or crash the process. CVE-2026-140240 is a denial of service, not code execution.

No source reports exploitation in the wild, and the advisories publish no indicators of compromise.

Why does the fix work?

The symlink fix rejects any .. that appears after a named path component, and it normalizes the entry path before taking its directory. That closes the chain where a real symlink changes the meaning of a later ...

@@ -279,7 +279,23 @@ export class Unpack extends Parser {
       // Resolve linkpath relative to the entry's directory.
       // `path.posix` is safe to use because we're operating on
       // tar paths, not a filesystem.
-      const entryDir = path.posix.dirname(entry.path)
+      // A '..' is only safe at the start of the target. Any named
+      // part before it can be a symlink, and then the '..' goes to
+      // the parent of that symlink's target.
+      const firstName = parts.findIndex(
+        part => part !== '..' && part !== '.' && part !== '',
+      )
+      if (firstName !== -1 && parts.includes('..', firstName)) {
+        this.warn(
+          'TAR_ENTRY_ERROR',
+          `${field} contains '..' after a path portion`,
+          { entry, [field]: p },
+        )
+        return false
+      }
+      // Normalize the path, so that the directory is the one where
+      // the link is created. The path 'x/.' creates the link 'x'.
+      const entryDir = path.posix.dirname(path.posix.normalize(entry.path))
       const resolved = path.posix.normalize(

A target such as foo/../bar is now refused, even when it would resolve inside the root. The commit marks ten symlink advisories as fixed: eight of the CVEs in this post and the two symlink advisories without a CVE ID.

The PAX fix reads each record by its declared length instead of splitting on newlines, and stops at the first malformed record. It also removes NUL bytes across line breaks and restricts numeric fields to decimal digits and safe integers.

@@ -148,25 +148,36 @@ export class Pax implements HeaderData {
 const merge = (a: HeaderData, b?: HeaderData) =>
   b ? Object.assign({}, b, a) : a

-const parseKV = (str: string) =>
-  str
-    .replace(/\n$/, '')
-    .split('\n')
-    .reduce(parseKVLine, Object.create(null))
+// Each record is "<len> <key>=<value>\n". <len> is the byte length of
+// the whole record. A value can contain a newline, so use the length
+// to find the end of the record. Stop at the first malformed record.
+const parseKV = (str: string) => {
+  const set: Record<string, string | number | Date> = Object.create(null)
+  const buf = Buffer.from(str)
+  let pos = 0
+  while (pos < buf.length) {
+    let sp = pos
+    while (
+      sp < buf.length &&
+      (buf[sp] as number) >= 0x30 &&
+      (buf[sp] as number) <= 0x39
+    ) {
+      sp++
+    }
+    if (sp === pos || buf[sp] !== 0x20) break
+    const n = Number(buf.toString('ascii', pos, sp))
+    const end = pos + n
+    if (end <= sp + 1 || end > buf.length || buf[end - 1] !== 0x0a) break
+    parseKVLine(set, buf.toString('utf8', sp + 1, end - 1))
+    pos = end
+  }
+  return set
+}

 const parseKVLine = (

ReadEntry also stopped applying a PAX size to the meta entry and now applies global fields before local ones, which removes the framing differences the batch describes.

Across 8.0.0 and 8.0.2, node-tar applies the depth limit to linkpath, refuses a path or linkpath longer than 32,768 characters, releases reservation state, and stops caching long paths. The deadlock and zstd fixes are in 8.0.0. The remaining long-path memory work lands in 8.0.2 and closes CVE-2026-140240.

How do I check if I was compromised?

The advisories publish no indicators of compromise. These checks find the traces a successful or attempted extraction can leave.

  1. List symlinks under each extraction directory and resolve their targets:
find <extract-dir> -type l -exec ls -l {} \;

A target outside the extraction directory is a lead to investigate, not proof by itself.

  1. Search application logs for node-tar warnings:
grep -R -E "TAR_ENTRY_ERROR|TAR_BAD_ARCHIVE|linkpath contains|escapes extraction" <log-dir>

A vulnerable version may accept the archive without a warning, so an empty result does not clear the host.

  1. Compare an installed package manifest with the published tarball:
npm view <package> dist.tarball
TARBALL="$(npm pack --silent <package>@<version>)"
tar -xOf "$TARBALL" package/package.json

A scripts entry that is absent from the published manifest, or a modification time that does not match the install, is a lead. On Windows, check the npm cache logs under %LOCALAPPDATA%\npm-cache\_logs for lifecycle output that the package did not declare.

  1. In CI, search the install step for unexpected postinstall output or child processes started by npm. The attack runs with the CI job's credentials, so rotate any secret that was present on a runner that installed an untrusted package.

Timeline

  • 2026-11-26: tar 7.5.24 released, fixing CVE-2026-140242.
  • 2026-11-27: the symlink and PAX fix commits land in the repository.
  • 2026-11-28: tar 8.0.0 released; tar 8.0.2 follows with the remaining resource fixes. From 04:14 UTC, node-tar publishes its repository advisories with proof-of-concept archives.
  • 2026-11-30: tar 8.0.3 and 8.0.4 fix two low-severity advisories without a CVE ID.
  • 2026-12-01: the 26 CVE records are published.
  • 2026-12-02: tar 8.0.5 fixes three more advisories without a CVE ID. GitHub's reviewed advisory database lists 18 of the 26 CVEs.
  • 2026-12-02: CISA KEV catalog 2026.11.30 contains no entry for the batch.

About two days separate the 7.5.24 fix from the public repository advisories.

Timeline from the 7.5.24 fix on November 26 to the repository advisories on November 28, the 26 CVE records on December 1 and the reviewed GitHub advisories on December 2
Figure 1: About two days from the first fix to the public advisories. Source: node-tar releases, fix commits, GitHub advisories and CVE records, checked December 2, 2026

FAQ

Does this affect Linux and macOS, or only Windows?

The symlink and PAX path-overwrite flaws affect every platform where node-tar extracts an attacker-controlled archive. The npm postinstall chain was verified on Windows, because npm's strip: 1 handling of a backslash turns the forged path into package.json there.

Is tar 7.5.24 enough?

No. tar 7.5.24 fixes CVE-2026-140242 only. The symlink and PAX newline flaws are fixed in 8.0.0, and the resource flaw needs 8.0.2. A complete fix is 8.0.2 or later.

Can I stay on Node.js 20?

Not with tar 8. The package declares node >=22. A Node.js 20 deployment must either upgrade Node.js or keep untrusted archives out of node-tar, because 7.x has no fixed release for the symlink and PAX newline flaws.

Is there a public exploit?

Yes. The advisories include self-contained proof-of-concept archives, and CISA's Vulnrichment entry for CVE-2026-140238 records Exploitation: poc. No source reports exploitation in the wild.

Does --ignore-scripts fix the npm path?

It blocks the postinstall step, not the file overwrite. The malicious archive can still replace package.json or another file under the extraction target. Use --ignore-scripts as one layer, not as the fix.

Does updating my project's tar dependency fix npm itself?

No. npm bundles its own copy of tar. npm 12.2.3 declares tar: ^7.5.22, and its published tarball contains 7.5.22, so npm needs its own update to tar 8.0.2 or later.

References

  • GitHub Security Advisory, "node-tar: Newline injection in PAX extended-header records enables entry-attribute forgery", GHSA-mpg7-vg3p-wc3m, CVE-2026-140238 (checked December 2, 2026).
  • GitHub Security Advisory, "node-tar: Symlink containment bypass via chained symlinks lets tar.x() create links that resolve outside the extraction directory", GHSA-3wwj-8j6r-q339, CVE-2026-140250 (checked December 2, 2026).
  • GitHub Security Advisory, "node-tar: A small archive exhausts memory or CPU through path-reservation bookkeeping", GHSA-7c32-79xj-j3jp, CVE-2026-140240 (checked December 2, 2026).
  • GitHub Security Advisory, "node-tar: Non-finite PAX size (Infinity) bypasses validation", GHSA-ph3c-p786-j4rp, CVE-2026-140242 (checked December 2, 2026).
  • GitHub Security Advisory, "node-tar UnpackSync never completes sync-stream extraction after any failing entry", GHSA-25mm-r35j-6hgm, CVE-2026-140252 (checked December 2, 2026).
  • GitHub Security Advisory, "node-tar async extraction deadlocks permanently when an entry's linkpath is a hierarchical relative", GHSA-98v3-7xjr-fg83, CVE-2026-140251 (checked December 2, 2026).
  • GitHub Security Advisory, "node-tar: Symlink target escapes the extraction directory through an in-archive symlink chain", GHSA-4pf9-5fpx-xmr6, CVE-2026-140249 (checked December 2, 2026).
  • GitHub Security Advisory, "node-tar: Nested symlink target can escape node-tar extraction root", GHSA-6wwr-g865-f46r, CVE-2026-140248 (checked December 2, 2026).
  • GitHub Security Advisory, "node-tar: Symlink linkpath escape check is lexical", GHSA-gvrf-jx37-rjv5, CVE-2026-140247 (checked December 2, 2026).
  • GitHub Security Advisory, "node-tar: SymbolicLink extraction escapes the extraction directory on non-Windows hosts", GHSA-hqgx-p3r3-2cfg, CVE-2026-140246 (checked December 2, 2026).
  • GitHub Security Advisory, "node-tar: Symlink linkpath containment bypass via entry paths ending in '/.'", GHSA-jmj2-9c5q-vw73, CVE-2026-140245 (checked December 2, 2026).
  • GitHub Security Advisory, "node-tar: Symlink containment bypass via nested symlink + '..'", GHSA-mhqm-9wj8-w7r4, CVE-2026-140244 (checked December 2, 2026).
  • GitHub Security Advisory, "node-tar crashes the process with an uncaught exception on a 4-byte zstd magic header", GHSA-72fp-85cc-g945, CVE-2026-140241 (checked December 2, 2026).
  • GitHub Security Advisory, "node-tar: Global PAX extended header injects attacker-controlled linkpath", GHSA-ffhw-4r4q-5cwv, CVE-2026-140239 (checked December 2, 2026).
  • GitHub Security Advisory, "node-tar: ReadEntry pending PAX size reapplication permits metadata-body file smuggling", GHSA-p96f-8xj2-g85p, CVE-2026-140237 (checked December 2, 2026).
  • GitHub Security Advisory, "node-tar: Archive framing differential from PAX size", GHSA-qv2w-fc3h-pm27, CVE-2026-140236 (checked December 2, 2026).
  • GitHub Security Advisory, "node-tar parses PAX extended headers by newline-splitting instead of length-delimiting", GHSA-rgjp-p5j7-w36x, CVE-2026-140235 (checked December 2, 2026).
  • GitHub Security Advisory, "node-tar: Incomplete NUL-byte truncation in ustar, GNU, and PAX names", GHSA-wpwg-r92p-fjjh, CVE-2026-140234 (checked December 2, 2026).
  • GitHub Security Advisory, "Symlink escape from the extraction directory via a trailing /. in the entry path", GHSA-wq85-w9p7-pgrm, CVE-2026-140243 (checked December 2, 2026).
  • GitHub Security Advisory, "PAX size precedence mismatch smuggles filtered entries during @archive repacking", GHSA-xgqw-r6hj-48hf, CVE-2026-140233 (checked December 2, 2026).
  • GitHub Security Advisory, "Uncaught Exception DoS in tar Extraction via NUL Bytes Surviving Line-Terminator-Blind String Sanitization", GHSA-xv7h-rgq8-7m7v, CVE-2026-140232 (checked December 2, 2026).
  • GitHub Security Advisory, "Decompression within the ratio limit is buffered in memory without backpressure, and zero-size entries queue without bound", GHSA-9hmx-4f52-v64x, CVE-2026-140231 (checked December 2, 2026).
  • GitHub Security Advisory, "node-tar PathReservations.getDirs() quadratic memory amplification via unbounded symlink linkpath depth", GHSA-xm6h-2993-3ch9, CVE-2026-140230 (checked December 2, 2026).
  • GitHub Security Advisory, "Denial of service via unbounded memory allocation bypassing maxDecompressionRatio", GHSA-9239-v992-p74f, CVE-2026-140229 (checked December 2, 2026).
  • GitHub Security Advisory, "node-tar async extract: deep symlink linkpath reaches quadratic getDirs, causing uncatchable heap-exhaustion DoS", GHSA-5qxq-cgm8-6j7r, CVE-2026-140119 (checked December 2, 2026).
  • GitHub Security Advisory, "Uncapped linkpath drives quadratic getDirs in async path reservation causing uncatchable OOM DoS", GHSA-343g-5v7x-x325, CVE-2026-140118 (checked December 2, 2026).
  • node-tar security advisories, https://github.com/isaacs/node-tar/security/advisories (checked December 2, 2026).
  • CVE record for CVE-2026-140238, https://www.cve.org/CVERecord?id=CVE-2026-140238 (checked December 2, 2026).
  • CVE record for CVE-2026-140250, https://www.cve.org/CVERecord?id=CVE-2026-140250 (checked December 2, 2026).
  • CVE record for CVE-2026-140240, https://www.cve.org/CVERecord?id=CVE-2026-140240 (checked December 2, 2026).
  • node-tar fix commit for the symlink checks, https://github.com/isaacs/node-tar/commit/23b368128b6cf7d4c26f2e302c0e4a82f70a6e3d (checked December 2, 2026).
  • node-tar fix commit for the PAX parser, https://github.com/isaacs/node-tar/commit/f351e5b4a8916bc8c8f821d0ad926a17d26ea237 (checked December 2, 2026).
  • node-tar fix commit for path reservations, https://github.com/isaacs/node-tar/commit/73b352e0010d6c99794ea7374800816a46d3bdb2 (checked December 2, 2026).
  • node-tar fix commit for long-path memory, https://github.com/isaacs/node-tar/commit/de87900752566867b422de0ebfe6592b30fa9786 (checked December 2, 2026).
  • node-tar 8.0.0 release notes, https://github.com/isaacs/node-tar/releases/tag/v8.0.0 (checked December 2, 2026).
  • node-tar 8.0.2 release, https://github.com/isaacs/node-tar/releases/tag/v8.0.2 (checked December 2, 2026).
  • node-tar changelog, 8.0 breaking changes, https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md (checked December 2, 2026).
  • node-tar package on npm, https://www.npmjs.com/package/tar (checked December 2, 2026).
  • npm CLI package manifest, https://github.com/npm/cli/blob/latest/package.json (checked December 2, 2026).
  • npm 12 release notes, https://github.com/npm/cli/releases/tag/v12.0.0 (checked December 2, 2026).
  • CISA Known Exploited Vulnerabilities catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog (checked December 2, 2026).

Free scan

Scan your own app for free

or book a demo

Keep reading

Related articles

Browse the blog