Open WebUI: Users denied by the OAuth domain allowlist or role policy can still sign in via token exchange
## Summary Open WebUI's OAuth token exchange endpoint issues a session for a provider access token without applying the email domain allowlist that the normal OAuth login callback enforces. An account whose email domain the login callback would refuse could still obtain a working session through this endpoint. ## Preconditions - `ENABLE_OAUTH_TOKEN_EXCHANGE=True`. It is disabled by default, so a default deployment is not affected. - `OAUTH_ALLOWED_DOMAINS` set to something other than `*`. Deployments without a domain allowlist are not affected. - A valid, unexpired access token on the configured provider. - An Open WebUI account already linked to that provider subject, or an account with a matching email when `OAUTH_MERGE_ACCOUNTS_BY_EMAIL` is enabled. This endpoint never creates accounts, so a token for a subject with no existing account is rejected. ## Impact An admin who narrows the domain allowlist expects users outside it to lose access at their next sign-in. The login callback does deny them. Token exchange kept issuing sessions, so a user whose domain was removed retained working access as their existing account at its existing role. The endpoint cannot create an account and cannot raise anyone's role, so this grants continued access rather than new or elevated access. ## Fix fb5ef978b, released in 0.9.0, adds the same domain allowlist check to the token exchange endpoint that the login callback runs, and denies the exchange with 403 when the email domain is not allowe
PYSEC-2026-4119
Revision 1
Open WebUI: Users denied by the OAuth domain allowlist or role policy can still sign in via token exchange
## Summary Open WebUI's OAuth token exchange endpoint issues a session for a provider access token without applying the email domain allowlist that the normal OAuth login callback enforces. An account whose email domain the login callback would refuse could still obtain a working session through this endpoint. ## Preconditions - `ENABLE_OAUTH_TOKEN_EXCHANGE=True`. It is disabled by default, so a default deployment is not affected. - `OAUTH_ALLOWED_DOMAINS` set to something other than `*`. Deployments without a domain allowlist are not affected. - A valid, unexpired access token on the configured provider. - An Open WebUI account already linked to that provider subject, or an account with a matching email when `OAUTH_MERGE_ACCOUNTS_BY_EMAIL` is enabled. This endpoint never creates accounts, so a token for a subject with no existing account is rejected. ## Impact An admin who narrows the domain allowlist expects users outside it to lose access at their next sign-in. The login callback does deny them. Token exchange kept issuing sessions, so a user whose domain was removed retained working access as their existing account at its existing role. The endpoint cannot create an account and cannot raise anyone's role, so this grants continued access rather than new or elevated access. ## Fix fb5ef978b, released in 0.9.0, adds the same domain allowlist check to the token exchange endpoint that the login callback runs, and denies the exchange with 403 when the email domain is not allowe
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: osv:PYSEC-2026-4119
open-webui
Source reference: /affected/0/package/name
- Affected versions
- 0.8.0
Source reference:
/affected/0/versions0.8.1Source reference:
/affected/0/versions0.8.10Source reference:
/affected/0/versions0.8.11Source reference:
/affected/0/versions0.8.12Source reference:
/affected/0/versions0.8.2Source reference:
/affected/0/versions0.8.3Source reference:
/affected/0/versions0.8.4Source reference:
/affected/0/versions0.8.5Source reference:
/affected/0/versions0.8.6Source reference:
/affected/0/versions0.8.7Source reference:
/affected/0/versions0.8.8Source reference:
/affected/0/versions0.8.9Source reference:
/affected/0/versions - Fixed versions
- 0.9.0
Source reference:
/affected/0/ranges - Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0.8.0"
},
{
"fixed": "0.9.0"
}
]
}
],
"package": {
"name": "open-webui",
"purl": "pkg:pypi/open-webui",
"ecosystem": "PyPI"
},
"versions": [
"0.8.0",
"0.8.1",
"0.8.10",
"0.8.11",
"0.8.12",
"0.8.2",
"0.8.3",
"0.8.4",
"0.8.5",
"0.8.6",
"0.8.7",
"0.8.8",
"0.8.9"
],
"database_specific": {
"source": "https://github.com/pypa/advisory-database/blob/main/vulns/open-webui/PYSEC-2026-4119.yaml"
}
}
]- Related CVEs
- CVE-2026-88005
Source reference:
/aliases
Publisher severity
No explicit severity was provided.
- Event
- #62485 · Revision 1
- Added to Heist Feed
- Publisher date
GHSA-4qg5-cxx4-g927
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: osv:GHSA-4qg5-cxx4-g927
open-webui
Source reference: /affected/0/package/name
- Affected versions
- 0.8.0
Source reference:
/affected/0/versions0.8.1Source reference:
/affected/0/versions0.8.10Source reference:
/affected/0/versions0.8.11Source reference:
/affected/0/versions0.8.12Source reference:
/affected/0/versions0.8.2Source reference:
/affected/0/versions0.8.3Source reference:
/affected/0/versions0.8.4Source reference:
/affected/0/versions0.8.5Source reference:
/affected/0/versions0.8.6Source reference:
/affected/0/versions0.8.7Source reference:
/affected/0/versions0.8.8Source reference:
/affected/0/versions0.8.9Source reference:
/affected/0/versions - Fixed versions
- 0.9.0
Source reference:
/affected/0/ranges - Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0.8.0"
},
{
"fixed": "0.9.0"
}
]
}
],
"package": {
"name": "open-webui",
"purl": "pkg:pypi/open-webui",
"ecosystem": "PyPI"
},
"versions": [
"0.8.0",
"0.8.1",
"0.8.10",
"0.8.11",
"0.8.12",
"0.8.2",
"0.8.3",
"0.8.4",
"0.8.5",
"0.8.6",
"0.8.7",
"0.8.8",
"0.8.9"
],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-4qg5-cxx4-g927/GHSA-4qg5-cxx4-g927.json"
}
}
]- Related CVEs
- CVE-2026-88005
Source reference:
/aliases
Publisher severity
No explicit severity was provided.
- Event
- #62600 · Revision 1
- Added to Heist Feed
- Publisher date