magique (PyPI) · Malicious Code
Affects magiqueSource GCVE Database
Malicious package : remove magique and rotate any secrets on hosts that installed it.
Data as of 2 Dec 2026, 21:16 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 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 | Affected
| Fixed in– |
| PyPImagique | 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' were published to PyPI on 2026-06-08 as part of the 'Hades' wave of the Shai-Hulud supply-chain campaign. These releases (versions 0.6.8 and 0.6.9) execute a bundled JavaScript payload via the Bun runtime upon import, which harvests and exfiltrates credentials and attempts self-propagation. The behavior is partially characterized and linked references provide further analysis and indicators of compromise.
References
- github.com/Schtinguerch/magique (opens in a new tab)
- github.com/pypa/advisory-database/tree/main/vulns/magique/PYSEC-2026-592.yaml (opens in a new tab)
- inspector.pypi.io/project/magique/0.6.9/packages/fb/cf/376a097f8893ac5c63e3d067b233bf16de9e3c980d8da0ac887a5619b297/magique-0.6.9-py3-none-any.whl//magique-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)