All vulnerabilities

npm

CVE-2026-63478

isomorphic-git: Path traversal via a ".." tree-entry name writes files outside the working directory on clone/checkout

Severity
Medium 5.3
Published
9 Nov 2026
Last changed
9 Nov 2026
Added to UpHeron
23 Nov 2026
Fixed in
1.38.6
Exploit chance
0.4% in the next 30 daysHigher than 35% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
Path traversal (CWE-22)
Attack
Over the network · Only under certain conditions · No login needed · Needs someone to click or open something
Attacker can
Change data
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N
Also known as
GHSA-cw2g-2vwq-88w6
Sources
OSV.dev and GitHub

Description

isomorphic-git's tree parser (src/models/GitTree.js) validates each entry name only against the path separators / and . It does not reject the standalone reserved name .., so a malicious repository can, on a single clone/checkout, write files outside the working directory (unbounded depth). Works on any host-backed fs provider.

The guard is:

The standalone string .. passes. isomorphic-git assembles the full path incrementally across tree levels, so nesting .. trees yields ../escaped.txt, ../../escaped.txt, … with unbounded depth (each level is a separate tree object that passes the per-entry guard). On checkout mkdir(workdir/..) hits EEXIST (ignored) and the file is written above the working directory. Depth is chosen to reach the home dir, /etc, /tmp, etc.; overwriting a shell rc / config / startup file can escalate to code execution.

From the GitHub Advisory Database, CC BY 4.0. Shortened; the full text is there.

Affected software

SoftwareAffected versions
isomorphic-gitnpm · osv:npm:isomorphic-git
  • Every version before 1.38.6

About isomorphic-git

Weekly downloads (npm)
3,355,175npm, 24 Nov 2026

References