CVE-2026-63478

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

Medium published · updated · also known as GHSA-CW2G-2VWQ-88W6

5.3
CVSS score out of 10 · NVD (github.com)

Description

isomorphic-git is a pure JavaScript implementation of Git for Node.js and browsers. Prior to 1.38.6, isomorphic-git's tree parser in src/models/GitTree.js accepts a standalone .. tree-entry name because it rejects only path separators. During clone or checkout from a malicious or man-in-the-middle-controlled non-GitHub remote, nested .. entries can escape the working-tree root and write files at attacker-selected parent paths on any host-backed fs provider. The arbitrary file write can overwrite startup or configuration files and lead to code execution. GitHub-hosted trees are not a direct source because GitHub rejects .. entries during repository integrity checks. This issue is fixed in version 1.38.6.

Affected products and versions

Product / packageEcosystem / vendorVersionsFixed inSource
isomorphic-git npm <= 1.38.51.38.6 GitHub

References