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:
Affected software
| Software | Affected versions |
|---|---|
isomorphic-gitnpm · osv:npm:isomorphic-git |
|
About isomorphic-git
- Weekly downloads (npm)
- 3,355,175npm, 24 Nov 2026
Vulnerabilities in isomorphic-git
- In our list
- 6
- Published in the last 12 months
- 6
- Critical, last 12 months
- 0
- High, last 12 months
- 3
- Known exploited
- 0
- CVE-2026-77355isomorphic-git: NTFS .git::$INDEX_ALLOCATION alias bypass writes into the active gitdirHigh 8.8 30 Nov 2026
- CVE-2026-63476isomorphic-git allows unbounded memory allocation from attacker-controlled delta target size (DoS)Medium 4.3 23 Nov 2026
- CVE-2026-63478isomorphic-git: Path traversal via a ".." tree-entry name writes files outside the working directory on clone/checkoutMedium 5.3 9 Nov 2026
- CVE-2026-63475isomorphic-git: Circular symbolic references cause non-terminating resolution (DoS)Medium 4.3 9 Nov 2026
- CVE-2026-63395isomorphic-git: Arbitrary file write outside of working tree via directory symlink during checkout (potential RCE)High 8.8 9 Nov 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-86017
- GitHub Advisory Database https://github.com/advisories/GHSA-pvh8-4vwp-j58p