Skip to main content
MalwarePublished Updated

python3-autopep8 (PyPI) · Malicious Code

Affects python3-autopep8Source GCVE Database

0

Malicious package : remove python3-autopep8 and rotate any secrets on hosts that installed it.

Data as of 22 Nov 2026, 02:56 UTC

Classification

Malicious package

Published to PyPI · OSV MAL-2025-191844

What to do

Remove python3-autopep8 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

ProductAffectedFixed in
PyPIpython3-autopep8Affected
  • =0.0.0
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

The python3-autopep8 package on PyPI contains malicious code that exfiltrates basic host information such as IP address and username during installation or import. The package overrides the install command in setup.py to execute this malicious behavior. It serves no legitimate purpose beyond this data exfiltration.

References

Community reviews

Loading reviews…