pypi · Malicious package advisory
Malwareglob-to-regexp
GHSA-2r7g-vffp-8323
Malicious code in glob-to-regexp (PyPI)
Details
**Severity:** Critical **Affected versions:** `= 2.1.1` ## Source: kam193 (ce8e1c3de8370811f29db098c2ca6d1fbd027017b5e29a9b540a3dbe8f58c704) Generic campaign for all (likely) research / pentests, where the amount or art of collected data raises questions about the privacy, security and ethical side. --- Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers. Campaign: GENERIC-questionable-pentest Reasons (based on the campaign): - exfiltration-env-variables - exfiltration-generic - The package overrides the install command in setup.py to execute malicious code during installation. - typosquatting --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/glob-to-regexp/MAL-2025-6510.json)) **References:** - https://bad-packages.kam193.eu/pypi/package/glob-to-regexp - https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/glob-to-regexp/MAL-2025-6510.json - https://github.com/advisories/GHSA-2r7g-vffp-8323
Compromised versions (1)
- = 2.1.1
Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.