—
PYSEC-2026-232
Malicious code in ensmallen (PyPI)
Details
Part of the "Hades" wave of the Shai-Hulud supply-chain campaign. On 2026-06-08, malicious phantom releases of ensmallen 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 / ensmallen
No fixed version published yet for ensmallen (pip). Pin to a known-safe version or switch to an alternative.
References
- https://inspector.pypi.io/project/ensmallen/0.8.101/packages/53/bf/6210699d6165e632ebad20175808bf71e4a09a48dab3a1e0a4c002d8cc5b/ensmallen-0.8.101-py3-none-any.whl/ensmallen/_index.js [EVIDENCE]
- https://www.endorlabs.com/learn/shai-hulud-hades-wave-hits-six-pypi-bioinformatics-packages [ARTICLE]
- https://www.stepsecurity.io/blog/the-hades-campaign-pypi-packages [ARTICLE]