pypi · Malicious package advisory
Malwarepygments-richstyle
GHSA-4f8r-7974-vrmq
Malicious code in pygments-richstyle (PyPI)
Details
**Severity:** Critical **Affected versions:** `= 1.0.0` ## Source: kam193 (a965f61b1e51e6c96a8987633eaf2f23001320e4c6b884c33603230c66798e74) Packages silently decrypt content hidden in a dependency and load them as Python extension modules. In the first wave, those are copies of legitimate aiohttp and aiohappyeyeballs packages. In the second wave, malicious packages created good-looking forks of legitimate rich and pigments packages. --- Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers. Campaign: 2025-10-asynhttp Reasons (based on the campaign): - typosquatting - exfiltration-generic - obfuscation - clones-real-package - native-extension --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/pygments-richstyle/MAL-2025-191654.json)) **References:** - https://bad-packages.kam193.eu/pypi/package/pygments-richstyle - https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/pygments-richstyle/MAL-2025-191654.json - https://www.cert.at/en/blog/2025/10/how-typosquatting-tricked-me-a-bit - https://github.com/advisories/GHSA-4f8r-7974-vrmq
Compromised versions (1)
- = 1.0.0
Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.