CVE-2026-77355: isomorphic-git NTFS .git::$INDEX_ALLOCATION Alias Bypass Writes Vulnerability

HIGH
Advisory Identifier: GHSA-6fxm-h49m-4fg3
CVSS 8.8
CWE-22
Published
Advisory Summary

CVE-2026-77355 is a HIGH (CVSS 8.8) ntfs .git::$index_allocation alias bypass writes vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting isomorphic-git libraries in the npm ecosystem. The issue involves ntfs .git::$index_allocation alias bypass writes into the active gitdir. Remediation is available by upgrading affected packages to version 1.38.7.

CVE-2026-77355 at a Glance

CVE Identifier CVE-2026-77355
GHSA Identifier GHSA-6fxm-h49m-4fg3
Severity HIGH
CVSS v3.1 Base Score 8.8
CWE Classification CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected Product isomorphic-git
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 8.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2026-77355

To remediate this vulnerability, upgrade all affected isomorphic-git dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

isomorphic-git fixed: 1.38.7
npm install isomorphic-git@1.38.7
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls isomorphic-git

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2026-77355, inspect your project dependencies using npm:

npm ls isomorphic-git

Analyze the terminal output to locate any version of isomorphic-git in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.38.7), your application is affected.

Note: The npm ls isomorphic-git command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & RFC 5280 Specification

Under RFC 5280 specifications for X.509 certificates, the Name Constraints extension defines a namespace within which all subsequent subject names in a certification path must be located. Constraints apply to various name forms including directory names, IP addresses, rfc822Name (email addresses), and uniformResourceIdentifier (URI) entries. Specifically, during certificate path validation, affected versions of isomorphic-git failed to properly normalize or enforce boundary checks when domain names contained trailing dot (.) characters. Because domain names with a trailing dot signify fully qualified domain names (FQDNs), this omission allowed non-conforming certificates to be improperly validated as compliant with the defined name constraints.

Source Advisory Statement

## Summary `isomorphic-git@1.38.6` incompletely implements Git's reserved `.git` pathname validation. Its tree parser rejects literal and normalized `.git` names and selected NTFS 8.3 aliases, but it does not reject a colon after `.git`. On Windows NTFS, the directory name: ```text .git::$INDEX_ALLOCATION ``` aliases the real `.git` directory. A repository containing that tree entry can therefore cause `clone()` or checkout to write attacker-controlled files into trusted repository metadata. In the demonstrated proof, the clone replaces the real `.git/config` and writes a batch file under the real `.git/hooks` directory. A subsequent ordinary native `git status` reads the poisoned `core.fsmonitor` value and executes the marker-only batch file. The guaranteed vulnerability is the gitdir write during isomorphic-git checkout. The command-execution step is a follow-on action by native Git or another compatible tool; isomorphic-git does not itself execute the hook. The crafted tree may be rejected by hosting platforms that enforce Git fsck's `hasDotgit` check. The PoC therefore uses a researcher-controlled loopback Smart HTTP remote. The realistic reach is an untrusted or compromised self-hosted remote, a permissive Git service, or a malicious object streamintroduced in transit—not necessarily a repository hosted on GitHub.com. ## Affected product - Ecosystem: npm - Package: `isomorphic-git` - Affected version tested: `1.38.6` - Published package commit: `823843d1cd19182df79bc907c767f5bcecb39a0b` - npm tarball SHA-256: `d2547d46c0a23ef9fc6fb2052e01ff78c348ceb92d394be05b146bc790943858` - Platform required for the alias: Windows on NTFS At the time of validation on 2026-07-10, `1.38.6` was the latest published version. ## Severity - An attacker can control the repository/object stream being cloned; the supplied PoC uses self-hosted Smart HTTP because stricter hosting may reject the malformed tree during fsck. - No privileges in the victim environment are required. - The victim or automation must clone/check out the repository, and command execution requires a later compatible Git/tool action. - The demonstrated follow-on executes as the victim developer or CI identity. - Scope remains unchanged; the vulnerable workflow and impacted user account are within the same security authority. A maintainer may choose to score only the guaranteed gitdir-write primitive lower. The report intentionally does not claim direct command execution inside isomorphic-git. ## Root cause `src/models/GitTree.js` in `v1.38.6` normalizes entry names by removing selected HFS-ignorable characters, lowercasing, and stripping trailing dots/spaces. It then rejects: - path separators; - `.` and `..`; - normalized `.git`; and - selected `git~1` through `git~9` aliases. The validation does not reject `.git:` or other colon-suffixed forms. The published code comments state that the checks mirror native Git's `is_ntfs_dotgit()` behavior, but native Git specifically treats NTFS alternate stream forms as unsafe. The checkout leading-component hardening added in the same release checks for symbolic links. It does not stop an NTFS filesystem alias because the alias resolves as a directory, not a symlink. ## Reproduction ### Requirements - A disposable Windows VM using NTFS - Node.js 20 or newer - Git for Windows on `PATH` - No third-party target; the PoC serves only on `127.0.0.1` ### Run From the extracted package directory in PowerShell: ```powershell cd .\poc powershell -ExecutionPolicy Bypass -File .\run-poc.ps1 ``` The script performs four checks: 1. Builds a bare repository containing the raw root-tree entry `.git::$INDEX_ALLOCATION`. 2. Serves it over loopback smart HTTP through `git http-backend`. 3. Clones it with exact `isomorphic-git@1.38.6` and verifies that the real `.git/config` and real `.git/hooks/vantix-fsmonitor.bat` are attacker-controlled. 4. Confirms the marker is absent, runs native `git status`, and verifies that `VANTIX_MARKER.txt` is created. It also attempts a native Git clone of the same URL as a negative control; native Git should refuse checkout. Expected key output on Windows NTFS: ```text realConfigContainsFsmonitor: true hookInRealGitdir: true markerBeforeNativeGit: false nativeGitStatusExit: 0 markerAfterNativeGit: true ``` The batch file only writes the text `VANTIX_HTTP_CLONE_MARKER` to a file inside the disposable victim directory. ## Independently validated behavior The published npm tarball was downloaded and hashed independently. Its SHA-256 matches the supplied evidence. A parser-level test against the exact published bundle produced the following result: ```json { ".git": { "accepted": false }, ".GIT ": { "accepted": false }, "git~1": { "accepted": false }, ".git::$INDEX_ALLOCATION": { "accepted": true } } ``` The included smart-HTTP PoC was also exercised on Linux as a transport/control check. The clone completed, but Linux created a literal `.git::$INDEX_ALLOCATION` directory and did not overwrite `.git`, which matches the Windows/NTFS-specific impact claim. Native Git rejected checkout of the same crafted tree. `git fsck --full` also reported `hasDotgit: contains '.git'`, confirming why strict Git hosting may block direct publication of the object. The original Windows replay evidence records: - `isomorphic-git@1.38.6` clone completed without error; - the real `.git/config` was overwritten; - the real hook file was written; - the marker was absent before native Git; - `git status` exited successfully and created the marker; and - native Git cloning the identical repository refused checkout. ## Impact A malicious repository can modify trusted repository metadata during clone or checkout on Windows NTFS. Depending on the written file, this can cause: - local repository configuration poisoning; - execution of configured commands when native Git or another compatible tool later processes the clone; - corruption of refs, hooks, attributes, or other gitdir state; and - compromise of the developer or CI account running the follow-on tool. The proof uses `core.fsmonitor` because `git status` invokes it in a normal workflow. Other gitdir targets may provide additional integrity or availability impact. [isomorphic_git_1.38.6_ntfs_alias_submission.zip](https://github.com/user-attachments/files/29907514/isomorphic_git_1.38.6_ntfs_alias_submission.zip)

CVE-2026-77355 Affected isomorphic-git Versions

1 component(s)
Fixed Versions:
1.38.7
Product / Package Ecosystem Affected Versions Fixed Version
isomorphic-git
npm
< 1.38.7
1.38.7

References

Frequently Asked Questions

What is CVE-2026-77355?
CVE-2026-77355 is a security vulnerability in isomorphic-git involving NTFS .git::$INDEX_ALLOCATION alias bypass writes into the active gitdir under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').
Which isomorphic-git versions are affected?
Affected versions include releases prior to 1.38.7 across affected packages: isomorphic-git.
What version fixes CVE-2026-77355?
Upgrading to 1.38.7 (or the latest patched release for your respective branch) resolves the vulnerability.
Is isomorphic-git affected?
Yes, isomorphic-git is affected in releases prior to 1.38.7. Upgrade your dependency to 1.38.7 or later.
What is the CVSS score of CVE-2026-77355?
CVE-2026-77355 has a CVSS v3.1 base score of 8.8 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2026-77355?
CVE-2026-77355 is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.).
How can I check npm dependencies for CVE-2026-77355?
Run the dependency tree command: 'npm ls isomorphic-git'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-6fxm-h49m-4fg3",
  "modified" : "2026-11-30T19:22:58Z",
  "published" : "2026-11-30T19:22:58Z",
  "aliases" : [ "CVE-2026-77355" ],
  "summary" : "isomorphic-git: NTFS .git::$INDEX_ALLOCATION alias bypass writes into the active gitdir",
  "details" : "## Summary\n\n`isomorphic-git@1.38.6` incompletely implements Git's reserved `.git` pathname validation. Its tree parser rejects literal and normalized `.git` names and selected NTFS 8.3 aliases, but it does not reject a colon after `.git`.\n\nOn Windows NTFS, the directory name:\n\n```text\n.git::$INDEX_ALLOCATION\n```\n\naliases the real `.git` directory. A repository containing that tree entry can therefore cause `clone()` or checkout to write attacker-controlled files into trusted repository metadata. In the demonstrated proof, the clone replaces the real `.git/config` and writes a batch file under the real `.git/hooks` directory. A subsequent ordinary native `git status` reads the poisoned `core.fsmonitor` value and executes the marker-only batch file.\n\nThe guaranteed vulnerability is the gitdir write during isomorphic-git checkout. The command-execution step is a follow-on action by native Git or another compatible tool; isomorphic-git does not itself execute the hook.\n\nThe crafted tree may be rejected by hosting platforms that enforce Git fsck's `hasDotgit` check. The PoC therefore uses a researcher-controlled loopback Smart HTTP remote. The realistic reach is an untrusted or compromised self-hosted remote, a permissive Git service, or a malicious object streamintroduced in transit—not necessarily a repository hosted on GitHub.com.\n\n## Affected product\n\n- Ecosystem: npm\n- Package: `isomorphic-git`\n- Affected version tested: `1.38.6`\n- Published package commit: `823843d1cd19182df79bc907c767f5bcecb39a0b`\n- npm tarball SHA-256:\n  `d2547d46c0a23ef9fc6fb2052e01ff78c348ceb92d394be05b146bc790943858`\n- Platform required for the alias: Windows on NTFS\n\nAt the time of validation on 2026-07-10, `1.38.6` was the latest published version.\n\n## Severity\n\n- An attacker can control the repository/object stream being cloned; the\n  supplied PoC uses self-hosted Smart HTTP because stricter hosting may reject\n  the malformed tree during fsck.\n- No privileges in the victim environment are required.\n- The victim or automation must clone/check out the repository, and command\n  execution requires a later compatible Git/tool action.\n- The demonstrated follow-on executes as the victim developer or CI identity.\n- Scope remains unchanged; the vulnerable workflow and impacted user account\n  are within the same security authority.\n\nA maintainer may choose to score only the guaranteed gitdir-write primitive lower. The report intentionally does not claim direct command execution inside isomorphic-git.\n\n## Root cause\n\n`src/models/GitTree.js` in `v1.38.6` normalizes entry names by removing selected HFS-ignorable characters, lowercasing, and stripping trailing dots/spaces. It then rejects:\n\n- path separators;\n- `.` and `..`;\n- normalized `.git`; and\n- selected `git~1` through `git~9` aliases.\n\nThe validation does not reject `.git:` or other colon-suffixed forms. The published code comments state that the checks mirror native Git's `is_ntfs_dotgit()` behavior, but native Git specifically treats NTFS alternate stream forms as unsafe.\n\nThe checkout leading-component hardening added in the same release checks for symbolic links. It does not stop an NTFS filesystem alias because the alias resolves as a directory, not a symlink.\n\n## Reproduction\n\n### Requirements\n\n- A disposable Windows VM using NTFS\n- Node.js 20 or newer\n- Git for Windows on `PATH`\n- No third-party target; the PoC serves only on `127.0.0.1`\n\n### Run\n\nFrom the extracted package directory in PowerShell:\n\n```powershell\ncd .\\poc\npowershell -ExecutionPolicy Bypass -File .\\run-poc.ps1\n```\n\nThe script performs four checks:\n\n1. Builds a bare repository containing the raw root-tree entry\n   `.git::$INDEX_ALLOCATION`.\n2. Serves it over loopback smart HTTP through `git http-backend`.\n3. Clones it with exact `isomorphic-git@1.38.6` and verifies that the real\n   `.git/config` and real `.git/hooks/vantix-fsmonitor.bat` are\n   attacker-controlled.\n4. Confirms the marker is absent, runs native `git status`, and verifies that\n   `VANTIX_MARKER.txt` is created. It also attempts a native Git clone of the\n   same URL as a negative control; native Git should refuse checkout.\n\nExpected key output on Windows NTFS:\n\n```text\nrealConfigContainsFsmonitor: true\nhookInRealGitdir: true\nmarkerBeforeNativeGit: false\nnativeGitStatusExit: 0\nmarkerAfterNativeGit: true\n```\n\nThe batch file only writes the text `VANTIX_HTTP_CLONE_MARKER` to a file inside the disposable victim directory.\n\n## Independently validated behavior\n\nThe published npm tarball was downloaded and hashed independently. Its SHA-256 matches the supplied evidence. A parser-level test against the exact published bundle produced the following result:\n\n```json\n{\n  \".git\": { \"accepted\": false },\n  \".GIT \": { \"accepted\": false },\n  \"git~1\": { \"accepted\": false },\n  \".git::$INDEX_ALLOCATION\": { \"accepted\": true }\n}\n```\n\nThe included smart-HTTP PoC was also exercised on Linux as a transport/control\ncheck. The clone completed, but Linux created a literal `.git::$INDEX_ALLOCATION` directory and did not overwrite `.git`, which matches the Windows/NTFS-specific impact claim. Native Git rejected checkout of the same crafted tree. `git fsck --full` also reported `hasDotgit: contains '.git'`, confirming why strict Git hosting may block direct publication of the object.\n\nThe original Windows replay evidence records:\n\n- `isomorphic-git@1.38.6` clone completed without error;\n- the real `.git/config` was overwritten;\n- the real hook file was written;\n- the marker was absent before native Git;\n- `git status` exited successfully and created the marker; and\n- native Git cloning the identical repository refused checkout.\n\n## Impact\n\nA malicious repository can modify trusted repository metadata during clone or checkout on Windows NTFS. Depending on the written file, this can cause:\n\n- local repository configuration poisoning;\n- execution of configured commands when native Git or another compatible tool\n  later processes the clone;\n- corruption of refs, hooks, attributes, or other gitdir state; and\n- compromise of the developer or CI account running the follow-on tool.\n\nThe proof uses `core.fsmonitor` because `git status` invokes it in a normal workflow. Other gitdir targets may provide additional integrity or availability impact.\n[isomorphic_git_1.38.6_ntfs_alias_submission.zip](https://github.com/user-attachments/files/29907514/isomorphic_git_1.38.6_ntfs_alias_submission.zip)",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "isomorphic-git"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.38.7"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 1.38.6"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/isomorphic-git/isomorphic-git/security/advisories/GHSA-6fxm-h49m-4fg3"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-77355"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/isomorphic-git/isomorphic-git/pull/2376"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/isomorphic-git/isomorphic-git/commit/e5dbec689fab148fd5b518f3d4958c9d728886f9"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/isomorphic-git/isomorphic-git"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/isomorphic-git/isomorphic-git/releases/tag/v1.38.7"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-22" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-11-30T19:22:58Z",
    "nvd_published_at" : "2026-11-20T19:18:54Z"
  }
}