SCA: security update for fastapi-opa (GHSA-5f5c-8rvc-j8wf)

medium Tenable Cloud Security Plugin ID 410789

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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. (CVE-2024-40627)

See Also

https://github.com/advisories/GHSA-5f5c-8rvc-j8wf

Plugin Details

Severity: Medium

ID: 410789

Version: Revision 1.6

Type: Local

Family: SCA Checks

Published: 1/23/2025

Updated: 6/1/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Low

Score: 1.2

Percentile: 0.01

Vendor

Vendor Severity: Medium

CVSS v2

Risk Factor: Medium

Base Score: 5

Temporal Score: 3.7

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:N/A:N

CVSS Score Source: CVE-2024-40627

CVSS v3

Risk Factor: Medium

Base Score: 5.8

Temporal Score: 5.1

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

CVSS v4

Risk Factor: Medium

Base Score: 6.9

Threat Score: 2.7

Threat Vector: CVSS:4.0/E:U

Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 7/15/2024

Vulnerability Publication Date: 7/15/2024

Reference Information

CVE: CVE-2024-40627

cwe: CWE-204