Observable Response Discrepancy Affecting fastapi-opa package, versions [,2.0.1)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    Exploit Maturity
    Proof of concept
    EPSS
    0.05% (17th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-PYTHON-FASTAPIOPA-7456992
  • published 16 Jul 2024
  • disclosed 15 Jul 2024
  • credit Unknown

How to fix?

Upgrade fastapi-opa to version 2.0.1 or higher.

Overview

fastapi-opa is a Fastapi OPA middleware incl. auth flow.

Affected versions of this package are vulnerable to Observable Response Discrepancy due to allowing all HTTP OPTIONS requests without evaluating it against any policy. An unauthenticated attacker could discover which entities exist within an application.

CVSS Scores

version 4.0
version 3.1
Expand this section

Snyk

Recommended
6.9 medium
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Attack Requirements (AT)
    None
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Confidentiality (VC)
    Low
  • Integrity (VI)
    None
  • Availability (VA)
    None
  • Confidentiality (SC)
    Low
  • Integrity (SI)
    None
  • Availability (SA)
    None