mal-2026-1422
Vulnerability from ossf_malicious_packages
Published
2026-03-13 20:20
Modified
2026-03-13 20:20
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
Credits
{
"affected": [
{
"package": {
"ecosystem": "PyPI",
"name": "fastapi-middleware-cors"
},
"versions": [
"1.0.0"
]
}
],
"credits": [
{
"contact": [
"https://github.com/kam193",
"https://bad-packages.kam193.eu/"
],
"name": "Kamil Ma\u0144kowski (kam193)",
"type": "REPORTER"
}
],
"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"
]
}
]
},
"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",
"id": "MAL-2026-1422",
"modified": "2026-03-13T20:20:02Z",
"published": "2026-03-13T20:20:02Z",
"references": [
{
"type": "WEB",
"url": "https://bad-packages.kam193.eu/pypi/package/fastapi-middleware-cors"
}
],
"schema_version": "1.7.4",
"summary": "Malicious code in fastapi-middleware-cors (PyPI)"
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…