Skip to main content
MalwarePublished Updated

mcp-server-pg (npm) · Malicious Code

Affects mcp-server-pgSource GCVE Database

0

Malicious package : remove mcp-server-pg and rotate any secrets on hosts that installed it.

Data as of 10 Jul 2026, 10:09 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-6922

What to do

Remove mcp-server-pg from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.

Affected software

ProductAffectedFixed in
npmmcp-server-pgAffected
  • 0.1.0 – 1.2.2
21 affected builds
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

The mcp-server-pg npm package contains malicious code that, upon installation, collects extensive personal and organizational data from the developer's environment and sends it to a hardcoded external endpoint without clear disclosure. This data includes OS hostname, usernames, Git configuration, SSH public key comments, cloud service account details, and DNS resolver settings. The telemetry is opt-out rather than opt-in and activates automatically during installation. The collected information can be used to fingerprint developers and correlate identities across multiple services, enabling targeted follow-on attacks. Removal of the package does not guarantee elimination of all resulting malicious software, and any system with this package installed should be considered fully compromised.

References

Community reviews

Loading reviews…