MediumGHSA-hmx6-r76c-85g9CVE-2024-1729PYSEC-2026-1416

Gradio apps vulnerable to timing attacks to guess password

Published 22 Feb 2024 · Updated 10 Sept 2026

Is your project on an affected gradio?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected package

gradioPyPI
Affected
<4.19.2
Fixed in
4.19.2
Update to the fixed version for your release line, for example:pip install 'gradio>=4.19.2'

Details

Impact

This security policy is with regards to a timing attack that allows users of Gradio apps to potentially guess the password of password-protected Gradio apps. This relies on the fact that string comparisons in Python terminate early, as soon as there is a string mismatch. Because Gradio apps are, by default, not rate-limited, a user could brute-force millions of guesses to figure out the correct username and password.

Patches

Yes, the problem has been patched in Gradio version 4.19.2 or higher. We have no knowledge of this exploit being used against users of Gradio applications, but we encourage all users to upgrade to Gradio 4.19.2 or higher.

Fixed in: https://github.com/gradio-app/gradio/commit/e329f1fd38935213fe0e73962e8cbd5d3af6e87b

Is GHSA-hmx6-r76c-85g9 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected gradio, and gives you the command that fixes it.

More advisories for gradio

  • HighCVE-2026-49119 Gradio FileExplorer preprocess path traversal allows files outside root_dir to reach callbacks · 1 Jul 2026
  • LowCVE-2026-10783Gradio: Audio cache key ignores metadata when saving numpy audio outputs · 4 Jun 2026
  • HighCVE-2026-48545Gradio contains a cookie injection vulnerability · 27 May 2026
  • HighCVE-2026-28416Gradio has SSRF via Malicious `proxy_url` Injection in `gr.load()` Config Processing · 1 Mar 2026
  • MediumCVE-2026-28415Gradio has an Open Redirect in its OAuth Flow · 1 Mar 2026
  • HighCVE-2026-28414Gradio is Vulnerable to Absolute Path Traversal on Windows with Python 3.13+ · 1 Mar 2026
All 52 advisories for gradio

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.