All vulnerabilities

npm

CVE-2026-86017

isomorphic-git: Arbitrary File Write via Symlink

Severity
High 8.0
Published
30 Nov 2026
Last changed
30 Nov 2026
Added to UpHeron
30 Nov 2026
Fixed in
1.38.8
Exploit chance
0.6% in the next 30 daysHigher than 41% of CVEs. EPSS by FIRST, 30 Nov 2026
Weakness
Path traversal (CWE-22)
Attack
Over the network · Needs a user account · 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:L/UI:R/S:U/C:H/I:H/A:H
Also known as
GHSA-pvh8-4vwp-j58p
Sources
OSV.dev and GitHub

Description

There is an arbitrary file write vulnerability in isomorphic-git (verified on v1.38.7). When applying tree changes during git cherry-pick, the helper applyTreeChanges materializes files by joining the worktree root with the entry path and writing the blob contents, but it never checks whether any leading path component is a symbolic link. An attacker who can cause a victim repository to contain a tracked symlink such as link -> / can later supply a cherry-pick tree containing link/tmp/; isomorphic-git follows the symlink and writes the file outside the worktree. This vulnerability may lead to remote code execution, privilege escalation, data corruption, or denial of service.

The vulnerable logic is in applyTreeChanges at src/utils/walkerToTreeEntryMap.js:260-295. For every changed blob it builds the on-disk path and writes it directly:

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.8

About isomorphic-git

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

References