{"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","modified":"2026-03-14T09:19:18.921054Z","published":"2026-03-13T20:20:02Z","database_specific":{"malicious-packages-origins":[{"source":"kam193","modified_time":"2026-03-13T20:20:02.439742Z","sha256":"305178589615e2247b892b3e305e5fd69a0fc02092f0b115b6b384441f5ddd46","versions":["1.0.0"],"import_time":"2026-03-13T20:47:26.379411933Z","id":"pypi/2026-03-fastapi-middleware-cors/fastapi-middleware-cors"}]},"references":[{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/fastapi-middleware-cors"}],"affected":[{"package":{"name":"fastapi-middleware-cors","ecosystem":"PyPI","purl":"pkg:pypi/fastapi-middleware-cors"},"versions":["1.0.0"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/fastapi-middleware-cors/MAL-2026-1422.json"}}],"schema_version":"1.7.5","credits":[{"name":"Kamil Mańkowski (kam193)","contact":["https://github.com/kam193","https://bad-packages.kam193.eu/"],"type":"REPORTER"}]}