Live threats

All CVEs / busykoala

CVE-2024-40627busykoala fastapi-opa

Medium 5.8 No auth needed

Priority
50
CVSS 3.1
5.8
EPSS
0.9%
probability of exploitation in 30 days · percentile 56
Auth required
No
Published
Jul 15, 2024
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-204
SSVC (CISA)
Exploitation: proof of concept · Automatable: yes · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for fastapi-opa.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI fastapi-opa < 2.0.1 2.0.1 pip install "fastapi-opa>=2.0.1"
PyPI fastapi-opa < 2.0.1 2.0.1 pip install "fastapi-opa>=2.0.1"

Per OSV / GitHub Advisories (GHSA-5f5c-8rvc-j8wf, PYSEC-2026-1361). Check the version in your lockfile before upgrading.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official sources

References

Links published by the sources. Open them with care.