magique-ai (PyPI) · Malicious Code
Affects magique-aiSource GCVE Database
Malicious package : remove magique-ai and rotate any secrets on hosts that installed it.
Data as of 2 Dec 2026, 23:47 UTC
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:NWhat to do
Remove magique-ai from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| PyPImagique-ai | Affected
| Fixed in– |
| PyPImagique-ai | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
Malicious phantom releases of the Python package 'magique-ai' were published on PyPI on 2026-06-08 using stolen credentials as part of the 'Hades' wave of the Shai-Hulud supply-chain campaign. These releases (versions 0.4.4 and 0.4.5) execute a bundled JavaScript payload via the Bun runtime upon import, which harvests and exfiltrates credentials and attempts self-propagation. The full behavior may not be completely characterized in this summary.
References
- github.com/pypa/advisory-database/tree/main/vulns/magique-ai/PYSEC-2026-593.yaml (opens in a new tab)
- inspector.pypi.io/project/magique-ai/0.4.5/packages/33/51/f36b85977bd09b12a88aff94531b608659312497c8856b73353603f11405/magique_ai-0.4.5-py3-none-any.whl//magique_ai-setup.pth (opens in a new tab)
- endorlabs.com/learn/shai-hulud-hades-wave-hits-six-pypi-bioinformatics-packages (opens in a new tab)
- stepsecurity.io/blog/the-hades-campaign-pypi-packages (opens in a new tab)