Skip to main content
VulnerabilityPublished Updated

CVE-2024-40627: Fastapi OPA is an opensource fastapi middleware which includes auth flow

Affects fastapiSource GCVE Database

0
Compare

Not known to be exploited · CVSS 5.8 Medium.

Data as of 24 Nov 2026, 19:27 UTC

CVSS 3.1 base score
5.8Medium
How severe the flaw is on the 0–10 CVSS scale.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 15 Jul 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 23 Nov 2026.

What to do

Affected software

ProductAffectedFixed in
Ubuntu 26.10fastapipkg:deb/ubuntu/fastapi?arch=source&distro=stonkingOther threatsAffected
  • =0.118.0-1
  • =0.135.3-1
Fixed in–
Ubuntu 26.04 LTSfastapipkg:deb/ubuntu/fastapi?arch=source&distro=resoluteOther threatsAffected
  • =0.115.11-4ubuntu1
  • =0.118.0-1
Fixed in–
Ubuntu 25.10fastapipkg:deb/ubuntu/fastapi?arch=source&distro=questingOther threatsAffected
  • =0.115.11-3
  • =0.115.11-4ubuntu1
Fixed in–
Ubuntu 24.04 LTSfastapipkg:deb/ubuntu/fastapi?arch=source&distro=nobleOther threatsAffected
  • =0.101.0-1
  • =0.101.0-2
  • =0.101.0-3
Fixed in–
Ubuntu 22.04 LTSfastapipkg:deb/ubuntu/fastapi?arch=source&distro=jammyOther threatsAffected
  • =0.63.0-2
  • =0.63.0-2ubuntu0.1
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

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.

References

Community reviews

Loading reviews…