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.
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
- 4
- Published in the last 12 months
- 4
- Critical, last 12 months
- 0
- High, last 12 months
- 1
- Known exploited
- 0
- CVE-2026-63476isomorphic-git allows unbounded memory allocation from attacker-controlled delta target size (DoS)Medium 4.3 23 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-63478
- GitHub Advisory Database https://github.com/advisories/GHSA-cw2g-2vwq-88w6