MAL-2026-1422Malicious code in fastapi-middleware-cors (PyPI)
| Ecosystem | Package | Version |
|---|---|---|
| PyPI | fastapi-middleware-cors | 1.0.0 |
{"modified":"2026-03-13T20:20:02Z","published":"2026-03-13T20:20:02Z","schema_version":"1.7.4","id":"MAL-2026-1422","summary":"Malicious code in fastapi-middleware-cors (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: kam193 (305178589615e2247b892b3e305e5fd69a0fc02092f0b115b6b384441f5ddd46)\nLibrary 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.\n\nThe 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.\n\n\n---\n\nCategory: MALICIOUS - The campaign has clearly malicious intent, like infostealers.\n\n\nCampaign: 2026-03-fastapi-middleware-cors\n\n\nReasons (based on the campaign):\n\n\n - typosquatting\n\n\n - obfuscation\n\n\n - exfiltration-generic\n","affected":[{"package":{"ecosystem":"PyPI","name":"fastapi-middleware-cors"},"versions":["1.0.0"]}],"references":[{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/fastapi-middleware-cors"}],"credits":[{"name":"Kamil Mańkowski (kam193)","type":"REPORTER","contact":["https://github.com/kam193","https://bad-packages.kam193.eu/"]}],"database_specific":{"malicious-packages-origins":[{"id":"pypi/2026-03-fastapi-middleware-cors/fastapi-middleware-cors","import_time":"2026-03-13T20:47:26.379411933Z","modified_time":"2026-03-13T20:20:02.439742Z","sha256":"305178589615e2247b892b3e305e5fd69a0fc02092f0b115b6b384441f5ddd46","source":"kam193","versions":["1.0.0"]}]}}数据来源:OpenSSF Malicious Packages · Apache-2.0