Read the docs
TI-2024-27039 Aliases CVE-2024-40627GHSA-5f5c-8rvc-j8wf

OpaMiddleware does not filter HTTP OPTIONS requests

Priority HIGH 65CWE-204Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Information disclosure
Confidentiality · integrity · availability
Low · None · None
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-204.

Summary

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00563 47th percentileScored 2026-11-07
Fix Fixed fastapi-opa (busykoala): 2.0.1fastapi-opa (PyPI): 2.0.1

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
Yes
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
busykoalafastapi-opabefore 2.0.12.0.1Patch availableCNA
—fastapi-opa (PyPI)before 2.0.12.0.1Patch availableGHSA-5f5c-8rvc-j8wf
  • fastapi-opa Vendorbusykoala Affected before 2.0.1 Fixed in 2.0.1 Patch available CNA
  • fastapi-opa (PyPI) Vendor— Affected before 2.0.1 Fixed in 2.0.1 Patch available GHSA-5f5c-8rvc-j8wf

CPE names CISA-ADP · 1

CPEVersionsRoleVendor
cpe:2.3:a:busykoala:fastapi-opa:*:*:*:*:*:*:*:*——busykoala
  • cpe:2.3:a:busykoala:fastapi-opa:*:*:*:*:*:*:*:* Versions — — ·busykoala

Remediation

  • Fix · CNA fastapi-opa (busykoala) Fixed in 2.0.1
  • Fix · GHSA-5f5c-8rvc-j8wf fastapi-opa (PyPI) Fixed in 2.0.1 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2024-40627
  2. 2026-10-03 Alias added: GHSA-5f5c-8rvc-j8wf

References

Sources