MAL-2026-1422 Malicious code in fastapi-middleware-cors (PyPI)

Malicious package Published
Package
fastapi-middleware-cors
Registry
PyPI

What is MAL-2026-1422?

MAL-2026-1422 is a malicious package in fastapi-middleware-cors, published on 13 Mar 2026.

Official description

Library disguised as FastAPI helper is executing obfuscated code during importing the module. The code is highly obfuscated; the code seems to contain an installation beacon reporting to a Telegram channel.

The package name appears as a dependency in a few Github repositories created long before publishing it, suggesting it might be an attempt to hijack the name that was previously wrongly generated by AI.


Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers.

Campaign: 2026-03-fastapi-middleware-cors

Reasons (based on the campaign):

  • typosquatting

  • obfuscation

  • exfiltration-generic

What should I do about MAL-2026-1422?

Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.

Sources

Is MAL-2026-1422 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free