All vulnerabilities

npm

CVE-2026-63395

isomorphic-git: Arbitrary file write outside of working tree via directory symlink during checkout (potential RCE)

Severity
High 8.8
Published
9 Nov 2026
Last changed
9 Nov 2026
Added to UpHeron
23 Nov 2026
Fixed in
1.38.6
Exploit chance
0.7% in the next 30 daysHigher than 54% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
Path traversal (CWE-22)Link following (CWE-59)
Attack
Over the network · No login needed · Needs someone to click or open something
Attacker can
Read data · Change data · Take it down
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Also known as
GHSA-9qw7-j9xw-fv9c
Sources
OSV.dev and GitHub

Description

git.checkout writes working-tree files through a directory symlink without checking the leading path, so a malicious repository can write outside the intended working directory. The defect is in isomorphic-git's checkout logic itself and is therefore independent of the fs provider. The impact depends on the configured filesystem; worst case is arbitrary file write on the host, e.g. injecting an attacker key into ~/.ssh/authorized_keys → remote login / code execution.

A single git tree can't hold a name as both a symlink and a directory, so the attack uses two states:

Checking out commit N writes config as a directory symlink. Checking out commit N+1 sees config/authorized_keys as a new path: isomorphic-git mkdirs the parent (config, already a symlink → EEXIST, ignored) then writeFiles the file, which the OS resolves through the symlink to outside the working directory.

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