CVE-2024-40627
published medium CVSS 3.1 · 5.8OpaMiddleware does not filter HTTP OPTIONS requests
Package status and fixes
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.8 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| busykoala | fastapi-opa | < 2.0.1 (affected) | GitHub_M · cna |
| busykoala | fastapi-opa | 0 to < 2.0.1 (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-204 CWE-204: Observable Response Discrepancy
References
3Provider assertions
3GitHub_M · cna
OpaMiddleware does not filter HTTP OPTIONS requests
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- e0cd52daecd4b9d864e7956d609b7d2d14b513ffb16c61c1367e3c6de91f7177
- Ingested
- 23 Sep 2026, 08:26:02 UTC
- Source record
- Official CVE record