{"id":"CVE-2024-40627","published":"2024-07-15T19:21:40Z","modified":"2024-08-02T04:33:11Z","title":"OpaMiddleware does not filter HTTP OPTIONS requests","vendor":"busykoala","product":"fastapi-opa","tier":"tail","description":{"text":"Fastapi OPA is an opensource fastapi middleware which includes auth flow. HTTP `OPTIONS` requests are always allowed by `OpaMiddleware`, even when they lack authentication, and are passed through directly to the application. `OpaMiddleware` allows all HTTP `OPTIONS` requests without evaluating it against any policy. If an application provides different responses to HTTP `OPTIONS` requests based on an entity existing (such as to indicate whether an entity is writable on a system level), an unauthenticated attacker could discover which entities exist within an application. This issue has been addressed in release version 2.0.1. All users are advised to upgrade. There are no known workarounds for this vulnerability.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.8,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00854,"percentile":0.55743,"provenance":"source"},"cwes":[{"id":"CWE-204","name":"Observable Response Discrepancy"}],"references":[{"url":"https://github.com/busykoala/fastapi-opa/security/advisories/GHSA-5f5c-8rvc-j8wf","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/busykoala/fastapi-opa/commit/9588109ff651f7ffc92687129c4956126443fb8c","tags":["x_refsource_MISC"]},{"url":"https://github.com/busykoala/fastapi-opa/blob/6dd6f8c87e908fe080784a74707f016f1422b58a/fastapi_opa/opa/opa_middleware.py#L79-L80","tags":["x_refsource_MISC"]}],"priority":{"score":15.2,"factors":[{"name":"EPSS percentile","points":11.15},{"name":"CVSS severity","points":4.06}]},"vendorSlug":"busykoala","affectedVersions":[{"vendor":"busykoala","product":"fastapi-opa","versions":["< 2.0.1"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2024-07-15T20:03:55.852372Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"fastapi-opa","vulnerableRanges":["<2.0.1"],"patched":["2.0.1"],"from":["GHSA-5f5c-8rvc-j8wf","PYSEC-2026-1361"],"provenance":"source"}],"summary":{"text":"The fastapi-opa middleware from busykoala (the OpaMiddleware component) fails to filter HTTP OPTIONS requests, passing them to the application without any authentication or policy evaluation. An unauthenticated remote attacker can exploit this, but only where the application returns different OPTIONS responses depending on whether an entity exists, which lets the attacker enumerate which entities are present.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:43:31Z"},"euvd":{"id":"EUVD-2024-2263","exploited":false,"provenance":"source"}}