Skip to content
MediumVulnerability

GHSA-4qg5-cxx4-g927: Open WebUI: Users denied by the OAuth domain allowlist or role policy can still sign in via token exchange

Published
Record updated
View JSON
Affected
  • open-webui >= 0.8.0, < 0.9.0
Fixed in
0.9.0
  • released April 21, 2026, 142 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 for a provider access token without applying the email domain allowlist that the OAuth login callback enforces. Users whose domain was removed from `OAUTH_ALLOWED_DOMAINS` can keep working access through their existing account and role. The endpoint cannot create accounts or raise roles, and it requires `ENABLE_OAUTH_TOKEN_EXCHANGE=True`, which is disabled by default.

Mitigation

Fixed in 0.9.0 by commit fb5ef978b, which adds the same domain allowlist check to the token exchange endpoint and denies the exchange with 403 when the email domain is not allowed. Upgrading restores the check with no further action.