🛡️ MAL-2026-6922 — mcp-server-pg
Description
Malicious code in mcp-server-pg (npm)
Source: amazon-inspector
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
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.
Affected software
MAL-2026-6922 is recorded against 1 package.
- mcp-server-pg
Timeline and source
Published on 7 July 2026 and last revised on 9 July 2026. No public exploit is currently recorded for this entry. Record sourced from OSV.
References
github.com (Advisory)
www.npmjs.com (Package)
www.npmjs.com (Package)
www.npmjs.com (Package)
www.npmjs.com (Package)
www.npmjs.com (Package)
www.npmjs.com (Package)
www.npmjs.com (Package)
www.npmjs.com (Package)
www.npmjs.com (Package)
www.npmjs.com (Package)
www.npmjs.com (Package)
www.npmjs.com (Package)
www.npmjs.com (Package)
www.npmjs.com (Package)
Details
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| mcp-server-pg | — | — |
References
More MAL 2026 advisories
Browse all of MAL 2026 in the advisory index.
Free Vulnerability Check
Is your site affected by MAL-2026-6922?
BotEraser helps you identify potentially vulnerable plugins and themes by checking your installation against MAL-2026-6922 and other known CVE records.
Scan My Site Free →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.