Skip to content
MediumVulnerability

GHSA-wvm9-9g5j-623f: Open WebUI: Users denied by the OAuth role policy can still sign in via token exchange

Published
Record updated
View JSON
Affected
  • open-webui >= 0.8.0, < 0.11.1
Fixed in
0.11.1
  • released August 25, 2026, 16 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.2%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .

Summary

Open WebUI's OAuth token exchange endpoint in `backend/open_webui/routers/auths.py`, present from 0.8.0 onward, issues a session without running the role management that the OAuth login callback applies. A user whose provider roles would be refused or demoted can keep a working session at their existing role, including a revoked admin role. The endpoint cannot create accounts or raise roles. The flaw requires `ENABLE_OAUTH_TOKEN_EXCHANGE=True`, `ENABLE_OAUTH_ROLE_MANAGEMENT=True` with `OAUTH_ALLOWED_ROLES` or `OAUTH_ADMIN_ROLES`, and an existing linked account.

Mitigation

Fixed in 0.11.1 (commit d799e81ed), which runs the same role evaluation on the provider's response that the login callback runs. The exchange is denied with 403 when reported roles match no allowed or admin role, and the account role is updated to match the provider otherwise. Upgrading restores the check with no further action.