Malicious code in mcp-diag-7f3a (PyPI)
- GHSA-3fgm-7pvj-pj4r
Description
Installing the package or importing the module exfiltrates basic information about the host, and the package has no other purpose. --- Category: PROBABLY_PENTEST - Packages looking like typical pentest packages, but also anything that looks like testing, exploring pre-prepared kits, research & co, with clearly low-harm possibilities. Campaign: GENERIC-standard-pypi-install-pentest Reasons (based on the campaign): - The package contains code to exfiltrate basic data from the system, like IP or username. It has a limited risk. - The package overrides the install command in setup.py to execute malicious code during installation. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/f7fa169287c715283fc3d262d25e3c111b5ba1ec/osv/malicious/pypi/mcp-diag-7f3a/MAL-2026-20611.json))
Text from the GitHub Advisory record.
Recommendation
Remove the package and rotate any secret the machine that installed it could reach. There is no version to update to.
Affected
mcp-diag-7f3aPyPI
No versions listed
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.