MAL-2026-1422

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/fastapi-middleware-cors/MAL-2026-1422.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-1422
Published
2026-03-13T20:20:02Z
Modified
2026-03-14T09:19:18.921054Z
Summary
Malicious code in fastapi-middleware-cors (PyPI)
Details

-= Per source details. Do not edit below this line.=-

Source: kam193 (305178589615e2247b892b3e305e5fd69a0fc02092f0b115b6b384441f5ddd46)

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

Database specific
{
    "malicious-packages-origins": [
        {
            "id": "pypi/2026-03-fastapi-middleware-cors/fastapi-middleware-cors",
            "sha256": "305178589615e2247b892b3e305e5fd69a0fc02092f0b115b6b384441f5ddd46",
            "source": "kam193",
            "versions": [
                "1.0.0"
            ],
            "modified_time": "2026-03-13T20:20:02.439742Z",
            "import_time": "2026-03-13T20:47:26.379411933Z"
        }
    ]
}
References
Credits

Affected packages

PyPI / fastapi-middleware-cors

Package

Name
fastapi-middleware-cors
View open source insights on deps.dev
Purl
pkg:pypi/fastapi-middleware-cors

Affected ranges

Affected versions

1.*
1.0.0

Database specific

source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/fastapi-middleware-cors/MAL-2026-1422.json"