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
- resolvedcritical
Malicious code in typescirpt-core (npm)
The npm package 'typescirpt-core' (a typosquat of 'typescript') contained malicious code that executed on install, downloading and executing a Windows executable and pivoting WSL environments back to the host Windows system.
npmTyposquattingCompromised package - containedcritical
Malicious code in typescrit-cli (npm)
The npm package typescrit-cli contained malicious postinstall code that downloads and executes a payload, with capability to escape WSL containers and compromise Windows hosts. The package name is a typosquat of the legitimate typescript-cli.
npmTyposquattingCompromised package - containedcritical
Malicious code in typesript-cli (npm)
The npm package 'typesript-cli' (a one-character typosquat of 'typescript') contains malicious code in its postinstall script that downloads and executes a Windows PE binary, and can cross the Linux/WSL sandbox boundary to execute payloads on the Windows host. The script also beacons to a hardcoded IP endpoint.
npmTyposquattingCompromised package - containedcritical
Malicious code in testingsmthb1g (npm)
The npm package testingsmthb1g contains malicious code in its postinstall script that acts as an install-time dropper, downloading and executing a Windows binary payload and exfiltrating platform information. The attack includes sandbox escape capabilities for WSL/virtualized Linux environments.
npmCompromised package