HIGHCVSS v4 7.1Vulnerability

CVE-2026-140251

### Summary An unauthenticated remote-input denial of service allows a crafted tar archive of about 1.5 KB to permanently and silently hang node-tar's default asynchronous extraction. When a `Link` or `SymbolicLink` entry has a `linkpath` that is an ancestor (or descendant) directory of the entry's own `path`, the internal path-reservation queue enters an unsatisfiable state. The promise returned by `tar.x()` / `tar.extract()` never resolves or rejects, the stream never emits `end` / `finish` / `close`, and no warning is raised. Every entry after the poison entry is silently skipped. ### Details Async `Unpack` serialises filesystem work through `PathReservations` (`src/path-reservations.ts`). `reserve([entry.path, entry.linkpath], fn)` registers each reserved path as a plain function at that path's queue key, and every ancestor directory of each path as a `Set<Handler>` at that directory's queue key. `check(fn)` (src/path-reservations.ts:114-120) only schedules `fn` when it is the head function of every path queue AND the head of every directory queue is a `Set` that contains `fn`: ```ts check(fn) { const { paths, dirs } = this.#getQueues(fn) return ( paths.every(q => q && q[0] === fn) && dirs.every(q => q && q[0] instanceof Set && q[0].has(fn)) ) } ``` When one of the two reserved strings is an ancestor directory of the other, the same queue key is written twice: once as a function head (the path reservation, src/path-reservations.ts:65-72) and once as a directory `Set` (the dir reservation, src/path-reservations.ts:73-85). For a hardlink `a/b` whose linkpath is `a`, key `a` first receives `[fn]` (function head), then the dir loop appends a `Set` behind it, giving `[fn, Set([fn])]`. `check()` then requires `q[0] instanceof Set` at key `a`, but `q[0]` is the function `fn`, so `check()` is permanently false. `#run(fn)` never fires, `[CHECKFS2]` never executes, the `[PENDING]` counter never drains, and `[MAYBECLOSE]` never completes the stream. The

Properties

Summary
node-tar async extraction deadlocks permanently when an entry's linkpath is a hierarchical relative of its own path
Severity
high
Nvd fetched at
2026-12-02T06:37:54.190518+00:00
Cvss score
7.1
Cvss severity
HIGH
Retrieved at
2026-12-02T06:39:20+00:00
Ghsa published
2026-12-02T00:50:20Z
Source url
https://github.com/advisories/GHSA-98v3-7xjr-fg83
Ghsa updated
2026-12-02T00:50:22Z
Ghsa id
GHSA-98v3-7xjr-fg83
Last source
GitHub Advisory Database
Score
7.1
Cvss version
4.0
Cve id
CVE-2026-140251
Cvss vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
First seen by Signal
2026-12-01T22:36:00+00:00
Name
CVE-2026-140251
Is ghsa only
false
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Published at
2026-12-01T19:17:14.920

Related Entities (4)

HAS_WEAKNESS (2)

→[Weakness]Improper Locking
→[Weakness]Deadlock

AFFECTS (1)

→[Software]npm/tar

VULNERABLE_TO (1)

←[Software]npm/tar

Related research

Explore deeper with Ninja Signal's threat intelligence graph

CVE-2026-140251 (CVSS v4 7.1) — Ninja Signal Threat Intelligence | Ninja Signal