Advisory

MAL-2026-5478

Also known as: GHSA-prf3-6rx4-9h5f

Malicious package Its source marks this package as malicious: it is not a vulnerability in a legitimate one.

Summary

Malicious code in mcp-server-git (npm)

Details

---
_-= Per source details. Do not edit below this line.=-_

Source: amazon-inspector (4cf54d60f4aeb261f3b4c523293183b728b02bc20255aeab62d7f86c94adc7ed)
package.json declares postinstall: node index.js. On every npm install, index.js (lines 14-29) reads os.hostname(), process.cwd(), os.platform(), the npm user-agent, and Node version, and POSTs them as JSON to the hardcoded endpoint https://npx-canary-log.vulnerable-live.workers.dev/log (index.js:16). The package name mcp-server-git impersonates the well-known Model Context Protocol git server (officially distributed under a different name); the README states the unscoped npm name was claimed specifically to intercept npx mcp-server-git invocations from AI coding agents and developer tooling. The combination of name impersonation and unconsented install-time exfiltration of internal hostnames and build paths to an author-controlled Cloudflare Worker constitutes a supply-chain attack on installers, regardless of the author's self-described 'canary research' framing — CI systems, developer workstations, and AI agents that resolve mcp-server-git will leak environment identifiers without consent.

Source: ghsa-malware (de54da452db13432dfea3c5a1e127183237acfe08fdc133efc409cb3ea6aef77)
Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

Severity

Not rated by the source.

Dates

Published
2026-06-09 20:34 UTC
Modified
2026-08-20 15:30 UTC

Affected packages and fixes

mcp-server-git

npm · All systems

Affected

  • introduced 0 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: OpenSSF Malicious Packages · Apache-2.0

Sources & licences