PyPi: Fastapi-Opa

CVE-2024-40627

Safety vulnerability ID: 72251

This vulnerability was reviewed by experts

The information on this page was manually curated by our Cybersecurity Intelligence Team.

Created at Jul 15, 2024 Updated at Nov 29, 2024
Scan your Python projects for vulnerabilities →

Advisory

FastAPI OPA includes a security issue where HTTP `OPTIONS` requests are unconditionally allowed by `OpaMiddleware`, even when they lack authentication. These requests bypass policy evaluation and are forwarded directly to the application. This behavior can allow an unauthenticated attacker to determine the existence of entities within the application based on different responses to HTTP `OPTIONS` requests. For instance, responses might indicate whether an entity is writable at a system level. At present, there are no identified workarounds for this vulnerability.

Affected package

fastapi-opa

Latest version: 2.0.1

Fastapi OPA middleware incl. auth flow.

Affected versions

Fixed versions

Vulnerability changelog

This vulnerability has no description

Resources

Use this package?

Scan your Python project for dependency vulnerabilities in two minutes

Scan your application