Visit the Wiz Whimzical Shop at AWS re:Invent
Vulnerability DatabaseGHSA-844h-fxvq-x544

GHSA-844h-fxvq-x544: 
JavaScript vulnerability analysis and mitigation

Summary

node-tar aborts only when a GNU long-name/long-link entry follows a PAX header (the direction fixed in commit e14c074). The symmetric order — a GNU L/K entry then a PAX x header for the same entry — is not guarded. node-tar prefers the PAX value (agreeing with GNU tar), but Python tarfile (3.13/3.14) prefers the GNU-long value, producing a clean entry-name and symlink-linkpath differential. The maintainer's own e14c074 commit message asserts "a PAX header after a GNU long name is read, because all the programs agree on it" — empirically false on Python 3.14.

Root Cause

src/parser.ts:402 aborts only when this.#ex && type.startsWith('NextFile') (PAX-then-GNU). For the GNU-then-PAX order the x header is consumed with type === 'ExtendedHeader', so the guard is skipped. At parser.ts:329-333, ex.path ??= longPath / ex.linkpath ??= longLinkpath leave the already-set PAX value winning (??= does not overwrite).

Impact

Interpretation differential (CWE-436), single-oracle (vs Python only — node-tar agrees with GNU/bsdtar, the majority). A node-tar/GNU scanner sees a benign name/symlink target while a Python-tarfile extractor resolves a different name or a traversing symlink target, all clean. Lower severity because it requires a node-tar <-> Python pipeline specifically.

Proof of Concept

L('GNUPATH') then x(path=PAXPATH) then ustar file:
node-tar : first, PAXPATH    GNU : first, PAXPATH    Python : first, GNUPATH    (all clean)
K('../../../../../../etc/passwd') then x(linkpath=benign) then symlink:
node-tar : mylink->benign    GNU : mylink->benign    Python : mylink->../../../../../../etc/passwd (all clean)
CONTROL reverse order (PAX then L): node-tar ABORTS (TAR_BAD_ARCHIVE) -- confirms e14c074 guards one direction only

Attack Chain

  1. Entry: L/K GNU long entry (body = GNUPATH or linkpath ../../../../../../etc/passwd); then PAX x with path=PAXPATH (or linkpath=benign); then the ustar entry/symlink header; end. Unauthenticated — victim parses an untrusted tar.
    • Guard: none at entry.
    • Bypass proof: no auth/config.
  2. Check: parser.ts:402 this.#ex && type.startsWith('NextFile').
    • Guard: abort on PAX-then-GNU order only.
    • Bypass proof: the x header is consumed as ExtendedHeader (not NextFile*) -> guard skipped; control archive with reverse order DOES abort, confirming asymmetry.
  3. Processing: parser.ts:331-332 ex.path ??= longPath — PAX path already present -> PAX wins; header.ts:109 this.path = ex.path.
    • Guard: none.
    • Bypass proof: node-tar emits PAX value; Python emits GNU-long value on the identical archive.
  4. Sink: entry emitted path=PAXPATH / linkpath=benign.
  5. Impact: a Python-tarfile extractor writes a different name or a traversing symlink target; node-tar (and a GNU scanner) see benign values.

Bypass Evidence

On-disk reproduction vs GNU tar 1.35 and Python 3.14.7, independently rebuilt during final review. Clean divergence on both path and linkpath. The reverse-order control aborts (TAR_BAD_ARCHIVE), proving e14c074 guards only one direction. This directly falsifies the commit's documented rationale ("all the programs agree") on Python 3.14.

Affected Versions

<= 8.0.4 (latest release = HEAD b62c8bb). Code present on tag v8.0.4; no post-tag fix.

Suggested Fix

Abort (or warn) symmetrically: when a PAX x header follows a GNU L/K long name/link for the same entry — mirror the parser.ts:402 guard for both orderings, or make GNU-long values and PAX values conflict an error rather than silently preferring PAX.

Reported by zx (Jace) — GitHub: @manus-use


Source: NVD

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-7cfw-w2rf-f3jcMEDIUM5.3
  • JavaScript logoJavaScript
  • fast-xml-parser
NoYesDec 01, 2026
CVE-2026-141514LOW3.7
  • JavaScript logoJavaScript
  • minimatch
NoYesDec 01, 2026
GHSA-844h-fxvq-x544LOWN/A
  • JavaScript logoJavaScript
  • tar
NoYesDec 02, 2026
GHSA-8282-h5g3-523jLOWN/A
  • JavaScript logoJavaScript
  • tar
NoYesDec 02, 2026
GHSA-p4w4-63wp-74wqLOWN/A
  • JavaScript logoJavaScript
  • tar
NoYesDec 02, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management