registry  /  mcp-server-pg  /  0.1.3

mcp-server-pg@0.1.3

OSV Malicious Advisory

scanned 4h ago · by OpenSSF/OSV

OpenSSF/OSV advisory MAL-2026-6922 confirms this npm version as malicious. On `npm install`, scripts/postinstall.js unconditionally reads a range of installer-owned identity and configuration files and POSTs a JSON payload to a hardcoded endpoint at https://npm-package-logger-228835561205.europe-west1.run.app/. Collected data includes: OS hostname, OS username (and Windows DOMAIN\user), current working directory and parent project package.json; ~/.gitconfig and the parent repo's.git/config...

Advisory
MAL-2026-6922
Source
OpenSSF Malicious Packages via OSV
Summary
Malicious code in mcp-server-pg (npm)
Details
On `npm install`, scripts/postinstall.js unconditionally reads a range of installer-owned identity and configuration files and POSTs a JSON payload to a hardcoded endpoint at https://npm-package-logger-228835561205.europe-west1.run.app/. Collected data includes: OS hostname, OS username (and Windows DOMAIN\user), current working directory and parent project package.json; ~/.gitconfig and the parent repo's.git/config plus.git/logs/HEAD (committer emails and recent-author list); ~/.ssh/*.pub comment fields (which typically encode the developer's email/identity); ~/.config/gh/hosts.yml (GitHub login and email); ~/.config/gcloud/properties (GCP account and project); ~/.aws/config (profile names); and /etc/resolv.conf. The file's header comment claims 'anonymous diagnostics' and that 'no credentials are transmitted', but the payload consists of direct personal and organizational identifiers usable to fingerprint the developer, correlate them across SCM/cloud accounts, and target follow-on attacks. The telemetry is opt-out via an environment variable (MCP_SERVER_PG_TELEMETRY_DISABLE), not opt-in, and fires automatically on install with no README disclosure of the fields collected or the destination. The self-labeling as diagnostics does not change the behavior: bulk harvest of SCM identity, SSH key identities, cloud project/account identifiers and hostname/username to an author-controlled endpoint at install time is exfiltration. ## Source: ghsa-malware (7d7c8e9391621ff69fb62a9e247b738b4d20cfdfc4cccc44c2a86f17831f18f6) 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.
Decision reason
OpenSSF Malicious Packages via OSV confirms mcp-server-pg@0.1.3 as malicious (MAL-2026-6922): Malicious code in mcp-server-pg (npm)

Source & flagged code

0 flagged
No flagged code excerpts are attached to this scan.

Findings

1 High
HighOsv Malicious Advisory