isomorphic-git
CVE-2026-77355 · GHSA-6fxm-h49m-4fg3
NTFS alias bypass writing into the active gitdir
High, 8.8 · Public source snapshot: November 12, 2026
Original portfolio report · Public advisory
Shared credits and the scope of my investigation are documented below.
CVE-2026-77355 · GHSA-6fxm-h49m-4fg3 · isomorphic-git · High
Public security research by Charles Vosburgh (
the-vibe-dev).
| Field | Value |
|---|---|
| Package | isomorphic-git |
| Ecosystem | npm / Node.js |
| Severity | High |
| CVSS | 8.8 — CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| Public affected range | <= 1.38.6 |
| Fixed | 1.38.7 |
| Weakness | CWE-22 — Improper Limitation of a Pathname to a Restricted Directory |
| Public PoC | Yes — attached to the GHSA |
| Credit | Charles Vosburgh (the-vibe-dev) — discoverer and reporter |
On Windows NTFS, a malicious Git tree can use the pathname .git::$INDEX_ALLOCATION to cross the repository working-tree boundary and resolve into the clone's real .git directory. isomorphic-git releases through 1.38.6 accepted the crafted entry because their reserved-name validation reasoned about the input spelling rather than the name as NTFS interprets it.
That lets repository-controlled content overwrite trusted Git metadata during clone or checkout. The public end-to-end demonstration goes one step further: poisoned Git configuration is later consumed by native Git, producing marker-only command execution. The second step is important—this is not a claim that isomorphic-git itself directly executes the demonstrated command.
Security invariant: No attacker-controlled tree path may resolve to the active Git metadata directory after platform-specific filesystem namespace transformations.
A Git tree entry is untrusted input. During clone or checkout, isomorphic-git parses the tree and writes the corresponding files and directories into the working copy. The active .git directory must therefore remain unreachable from any repository-supplied pathname.
NTFS supports alternate data streams and stream types. For directories, ::$INDEX_ALLOCATION identifies the directory's index-allocation stream. As a result, a pathname such as:
.git::$INDEX_ALLOCATION
can alias the actual .git directory on NTFS rather than naming an ordinary sibling directory.
isomorphic-git already had reserved-name filtering intended to reject .git, case variants, trailing-dot/space variants, and NTFS short-name aliases such as git~1. In 1.38.6 the relevant normalization operated on the entire path component:
const hfsClean = path.replace(
/[\u200C-\u200F\u202A-\u202E\u206A-\u206F\uFEFF]/g,
''
)
const normalized = hfsClean.toLowerCase().replace(/[. ]+$/, '')
For .git::$INDEX_ALLOCATION, the normalized value still contains the colon suffix, so it is not equal to .git and passes the reserved-name test.
The parser behavior is especially useful as a control. Exact 1.38.6 rejects literal .git, a case/trailing-space form, and git~1, while accepting .git::$INDEX_ALLOCATION. That shows the issue is not simply a total lack of validation; it is a platform-specific namespace form missing from the equivalence model.
Fix
Version 1.38.7 treats the first colon as the boundary between the NTFS filename and stream declaration before applying the existing reserved-name checks:
const ntfsClean = hfsClean.split(':')[0]
const normalized = ntfsClean.toLowerCase().replace(/[. ]+$/, '')
The accompanying regression tests reject .git::$INDEX_ALLOCATION, other .git stream forms, case/trailing-dot/space variants, and git~1 stream forms while retaining benign colon-containing names that do not resolve to the Git metadata directory.
The fixing commit is:
e5dbec689fab148fd5b518f3d4958c9d728886f9
Root cause
The validator made a security decision on the lexical pathname before accounting for the destination filesystem's equivalence rules. NTFS could interpret a string that did not compare equal to .git as the .git directory itself.
The correct security question is not “does this string equal .git?” but “after the target filesystem interprets this name, can the destination resolve inside the protected Git metadata directory?”
flowchart TD
A[Attacker controls a Git tree or object stream]
B[Tree contains .git::$INDEX_ALLOCATION path components]
C[Victim clones or checks out with isomorphic-git on NTFS]
D[String-level validation accepts the path]
E[NTFS resolves the path into the real .git directory]
F[Attacker-controlled Git metadata is written]
G[Later native Git operation may consume poisoned configuration]
A --> B --> C --> D --> E --> F --> G
The practical prerequisites are:
- The victim performs clone or checkout with an affected isomorphic-git release.
- The working directory is on Windows NTFS.
- The attacker controls the repository/object stream.
- For the demonstrated command-execution follow-on, native Git or another compatible consumer later processes the poisoned metadata.
The public PoC is attached to GHSA-6fxm-h49m-4fg3 and is not duplicated as a separate artifact in this repository.
The published reproduction constructs a repository containing the raw tree entry, serves it through loopback Smart HTTP, clones it with isomorphic-git 1.38.6 on Windows/NTFS, and verifies that content lands inside the real gitdir. A marker-only follow-on then places Git configuration that is consumed by a later native git status operation.
The public controls are important:
- Exact 1.38.6 accepts the NTFS alias while rejecting ordinary reserved-name variants.
- Exact 1.38.7 rejects the alias.
- On Linux, the path is treated as a literal colon-containing name rather than an alias to
.git. - Native Git rejects checkout of the crafted path.
- Some hosted Git services may reject the malicious object before it reaches a victim, so the clearest threat model is an untrusted or compromised self-hosted/permissive remote or equivalent attacker-controlled object stream.
The directly demonstrated primitive is an attacker-controlled write inside the active .git directory during clone or checkout on Windows NTFS. Public validation showed overwrite of trusted Git metadata, including configuration and hook-area content.
The published follow-on uses core.fsmonitor as a marker-only execution path. The marker is absent before native Git runs and present afterward. That demonstrates command execution by the later native Git process after it consumes poisoned configuration; it should not be mischaracterized as direct execution inside isomorphic-git.
The GHSA rates the issue High, CVSS 8.8, with user interaction reflecting the later consumer step in the demonstrated chain.
GitHub's public advisory states:
Affected: <= 1.38.6
Fixed: 1.38.7
Source review directly confirmed the unsafe behavior in 1.38.5 and 1.38.6 and the fix in 1.38.7. Earlier releases were not individually sampled, so the broader <=1.38.6 range remains the publisher's public range rather than a claim that every historical release was independently executed.
Commit 823843d1cd19182df79bc907c767f5bcecb39a0b added incomplete reserved-name hardening in 1.38.6, but it did not introduce the underlying unsafe acceptance because 1.38.5 already lacked an equivalent protection. The exact introduction point was not established.
Upgrade to isomorphic-git 1.38.7 or later.
The shipped fix handles the published NTFS stream alias and adds regression coverage. More generally, code that writes attacker-controlled paths should perform platform-aware containment checks at the final filesystem boundary rather than rely exclusively on a growing list of forbidden spellings.
Regression tests should cover:
.git::$INDEX_ALLOCATION- other
.gitstream declarations .gitcase variants- trailing dot/space variants
git~1and stream variants- benign non-reserved colon names
- clone/checkout assertions that the real gitdir is never modified by repository content
| Date | Event |
|---|---|
| 2026-07-10 | Windows/NTFS behavior and exploit chain validated. |
| 2026-07-11 | Fix, isomorphic-git 1.38.7, GHSA, and CVE published. |
| 2026-08-26 | Exact npm parser behavior and cross-platform controls rechecked. |
CVE-2026-77355 / GHSA-6fxm-h49m-4fg3 is a filesystem canonicalization failure at a Git trust boundary. isomorphic-git validated the repository-supplied spelling, while NTFS assigned that spelling the meaning of the protected .git directory. Version 1.38.7 fixes the published alias by applying reserved-name checks to the NTFS filename portion before the stream declaration.
Broader lesson: Path security must reason about what the destination filesystem resolves, not only about what the input string looks like.
- https://github.com/isomorphic-git/isomorphic-git/security/advisories/GHSA-6fxm-h49m-4fg3
Charles Vosburgh (the-vibe-dev) — discoverer and publicly credited reporter.
Research was AI-assisted for source mapping, hypothesis generation, release comparison, and evidence organization. I performed the final validation, disclosure coordination, severity calibration, and publication review.
This write-up documents a publicly disclosed vulnerability for defensive research, remediation, regression testing, and authorized assessment. Do not use the public PoC against systems without explicit permission.