Malware in mcp-server-pg
Malware discovered in the npm package mcp-server-pg. Systems with this package installed or running are considered fully compromised and require immediate remediation.
- Disclosed
- Last updated
- Blast radius
- Any system with mcp-server-pg installed or running
- Ecosystems
- Attack vectors
- Affected entities
- mcp-server-pg
A critical malware incident has been identified in the npm package mcp-server-pg. According to the GitHub Advisory (GHSA-cfv7-74pc-vmff), any computer with this package installed or running should be considered fully compromised.\n\nThe advisory recommends that all secrets and keys stored on affected computers be rotated immediately from a different, uncompromised system. While the package should be removed, there is no guarantee that removal will eliminate all malicious software that may have been installed as a result of the compromise.\n\nThis represents a severe supply chain attack through a compromised package in the npm ecosystem, with potential for complete system compromise and credential theft.
Indicators of compromise
- Packages
- mcp-server-pg
Remediation
- Immediately isolate any computer with mcp-server-pg installed from the network
- Rotate all secrets, API keys, and credentials from a different, uncompromised computer
- Remove the mcp-server-pg package from all affected systems
- Perform a full security audit and malware scan of affected systems
- Review system logs and network traffic for signs of unauthorized access or data exfiltration
- Consider full system reimaging if complete compromise is suspected
Sources
- GitHub Advisory GHSA-cfv7-74pc-vmff · GitHub Advisory Database
Cite this entry
"Malware in mcp-server-pg." supplychainattack.org, Supply Chain Attack Incident Catalog. Disclosed July 7, 2026; last updated July 7, 2026. https://supplychainattack.org/incident/malware-in-mcp-server-pg-hidcs2
Suggest a correction
Found an error or have a newer source? Corrections to factual errors take priority over new entries.
Related incidents
- activecritical
Malware in @apexcraft/nano-key
Malware was discovered in the npm package @apexcraft/nano-key. Any computer with this package installed or running should be considered fully compromised, with all secrets and keys requiring immediate rotation from a different system.
npmCompromised package - containedcritical
Malware in @aspect-security/argon2
Malware was discovered in the npm package @aspect-security/argon2. Systems with this package installed or running should be considered fully compromised. All secrets and keys stored on affected computers should be rotated immediately from a different computer.
npmCompromised package - activecritical
Malware in express-deflect
Malware discovered in the npm package express-deflect. Systems with this package installed or running are considered fully compromised and require immediate remediation.
npmCompromised package - containedcritical
Malware in brunomenozzi-test-pkg
Malware was discovered in the npm package brunomenozzi-test-pkg. Systems with this package installed or running should be considered fully compromised and require immediate remediation.
npmCompromised package