VDB
KO

PYSEC-2026-579

Malicious code in cmd2func (PyPI)

Details

Part of the "Hades" wave of the Shai-Hulud supply-chain campaign. On 2026-06-08, malicious phantom releases of cmd2func were published to PyPI using stolen credentials. The package executes a bundled JavaScript payload (via the Bun runtime) on import that harvests and exfiltrates credentials and attempts self-propagation. This entry is a summary; behavior may not be fully characterized here. See the linked references for detailed analysis and indicators of compromise.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI / cmd2func

No fixed version published yet for cmd2func (pip). Pin to a known-safe version or switch to an alternative.

References