Skip to main content
MalwarePublished

fastapii (PyPI) · Malicious Code

Affects fastapiiSource GCVE Database

0

Malicious package : remove fastapii and rotate any secrets on hosts that installed it.

Data as of 7 Aug 2026, 15:40 UTC

Classification

Malicious package

Published to PyPI · OSV MAL-2026-13486

What to do

Remove fastapii 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
PyPIfastapiiAffected
  • 0.1.1 – 0.3.0
4 affected builds
Fixed in–

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

Description

The fastapii package on PyPI is a malicious typosquatting package impersonating the popular fastapi library. During installation, it executes obfuscated code that downloads and runs a remote binary on Linux systems. This binary is fetched from an unrelated GitHub account without verification, and the package's real behavior is to drop and execute this payload. The payload reportedly exfiltrates cryptocurrency wallet data and potentially other sensitive information. The malicious activity is triggered only on Linux, allowing it to evade detection on other platforms. The package versions 0.1.1, 0.1.2, 0.2.0, and 0.3.0 are affected.

References

Community reviews

Loading reviews…