Skip to main content
CVE-2024-4940VulnerabilityPublished Updated

CVE-2024-4940: gradio-app/gradio · URL Redirection to Untrusted Site

Affects gradio-app/gradioSource CVE Database V5

0

Not known to be exploited · public detection template (Nuclei) · CVSS 5.4 Medium.

Data as of 26 Oct 2026, 06:26 UTC

CVSS 3.0 base score
5.4Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
1.0% chance of exploitation in 30 days – higher than 63% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 22 Jun 2024

  2. Detectable: evidence found.

    nuclei template: Gradio - Open Redirect

  3. Weaponised: 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 2026-10-26.

What to do

AI-suggested

To mitigate CVE-2024-4940, organizations should implement strict validation of all URL parameters used for redirection, ensuring only trusted and whitelisted domains are allowed. Employing allowlists for redirect targets prevents arbitrary external redirects. Developers should update gradio-app/gradio to the latest patched version once available and monitor the project for security advisories. Implement Content Security Policy (CSP) headers to reduce the impact of potential XSS attacks. User education is critical; training users to recognize suspicious URLs and phishing attempts can reduce successful exploitation. Additionally, deploying web application firewalls (WAFs) with rules to detect and block open redirect patterns can provide an additional layer of defense. For internal deployments, restricting access to trusted networks and using authentication controls can limit exposure. Regular security assessments and penetration testing focusing on URL handling and input validation should be conducted. Finally, logging and monitoring redirect activities can help detect exploitation attempts early.

Description

An open redirect vulnerability exists in the gradio-app/gradio, affecting the latest version. The vulnerability allows an attacker to redirect users to arbitrary websites, which can be exploited for phishing attacks, Cross-site Scripting (XSS), Server-Side Request Forgery (SSRF), amongst others. This issue is due to improper validation of user-supplied input in the handling of URLs. Attackers can exploit this vulnerability by crafting a malicious URL that, when processed by the application, redirects the user to an attacker-controlled web page.

References

Community reviews

Loading reviews…