SCA: security update for gradio (GHSA-89v2-pqfv-c5r9)

medium Tenable Cloud Security Plugin ID 412572

Description

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

- Gradio is an open-source Python package designed for quick prototyping. This vulnerability relates to
**CORS origin validation accepting a null origin**. When a Gradio server is deployed locally, the
`localhost_aliases` variable includes "null" as a valid origin. This allows attackers to make unauthorized
requests from sandboxed iframes or other sources with a null origin, potentially leading to data theft,
such as user authentication tokens or uploaded files. This impacts users running Gradio locally,
especially those using basic authentication. Users are advised to upgrade to `gradio>=5.0` to address this
issue. As a workaround, users can manually modify the `localhost_aliases` list in their local Gradio
deployment to exclude "null" as a valid origin. By removing this value, the Gradio server will no longer
accept requests from sandboxed iframes or sources with a null origin, mitigating the potential for
exploitation. (CVE-2024-47165)

See Also

https://github.com/advisories/GHSA-89v2-pqfv-c5r9

Plugin Details

Severity: Medium

ID: 412572

Version: Revision 1.6

Type: Local

Family: SCA Checks

Published: 1/23/2025

Updated: 7/2/2026

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

Risk Information

VPR

Risk Factor: Low

Score: 2.1

Percentile: 7.51

Vendor

Vendor Severity: Medium

CVSS v2

Risk Factor: Medium

Base Score: 6.4

Temporal Score: 4.7

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

CVSS Score Source: CVE-2024-47165

CVSS v3

Risk Factor: Medium

Base Score: 5.4

Temporal Score: 4.7

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

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

CVSS v4

Risk Factor: Medium

Base Score: 5.3

Threat Score: 1.3

Threat Vector: CVSS:4.0/E:U

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

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 10/10/2024

Vulnerability Publication Date: 10/10/2024

Reference Information

CVE: CVE-2024-47165