Disclosed weakness · no CVE recorded
Gradio MCP routes could bypass an app’s login requirement
Gradio · Gradio · MCP server
First documented disclosure · Review checkpoint
Summary
An app protected by auth or auth_dependency could expose its MCP schema and non-queued tools without a login.
Severity and exploitation evidence
No CVSS score recorded in this review.
Exploitation not established: Reviewed public reports and controlled reproductions do not establish malicious exploitation against users. No exploit was executed in this review.
Technical severity is not a measure of observed attacks or of risk to your deployment. Attempts, demonstrations, and successful compromise retain the qualifications in the source.
How the weakness works
The MCP Starlette sub-application did not execute the login_check used by ordinary API routes; queue=False tools invoked process_api directly.
Conditions required
The app enables mcp_server=True and auth= or auth_dependency=; the unauthenticated client can reach its MCP routes. Tool execution additionally requires an exposed non-queued function.
Potential impact
Unauthenticated callers can discover tool schemas and execute the app’s exposed non-queued functions. Impact depends on what those functions do.
Affected versions and configurations
The maintainer report identifies the pre-fix behavior but gives no complete affected-release range.
Fix and mitigation status
Stable Gradio6.32.0, released November12, lists PR14053; tagged gradio/mcp.py wraps all MCP HTTP transports in the application’s authentication check.
Practical next steps
Upgrade to a supported release containing the correction and ensure MCP clients send the same login cookie or custom authentication headers as other app clients. Restrict MCP exposure pending upgrade.
Operating lesson
Mounted agent/tool sub-applications need the same authentication boundary as the main application.
Evidence and limits
Historical maintainer backfill: first reviewed mechanism disclosure is PR14053 on November9; its linked September28 audit tracker lists broad review scope, not this finding. Release and tagged source independently confirm inclusion in6.32.0. Queued tools/resources/prompts previously failed on authenticated apps even for valid users; that separate compatibility failure was not an authentication bypass. The fix uses per-caller loopback clients and TLS verification for mounted public origins. Upstream reports running-app authentication tests and a maintainer corroborates them; this lane did not execute them. Separate from numbered Gradio run-history CVE-2026-134825.
Sources
- Gradio maintainer MCP authentication correction
Primary source ·
- Gradio6.32.0 release
Primary source ·
- Gradio6.32.0 tagged MCP authentication wrapper
Primary source ·