Skip to content
Heist/ feed
UnratedFix available

Open WebUI: Users denied by the OAuth domain allowlist or role policy can still sign in via token exchange

Type: advisorySource: OSV2 source records

## 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

Announced Group revision 1
Original source ↗

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/versions

0.8.1

Source reference: /affected/0/versions

0.8.10

Source reference: /affected/0/versions

0.8.11

Source reference: /affected/0/versions

0.8.12

Source reference: /affected/0/versions

0.8.2

Source reference: /affected/0/versions

0.8.3

Source reference: /affected/0/versions

0.8.4

Source reference: /affected/0/versions

0.8.5

Source reference: /affected/0/versions

0.8.6

Source reference: /affected/0/versions

0.8.7

Source reference: /affected/0/versions

0.8.8

Source reference: /affected/0/versions

0.8.9

Source 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
Read the original announcement

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/versions

0.8.1

Source reference: /affected/0/versions

0.8.10

Source reference: /affected/0/versions

0.8.11

Source reference: /affected/0/versions

0.8.12

Source reference: /affected/0/versions

0.8.2

Source reference: /affected/0/versions

0.8.3

Source reference: /affected/0/versions

0.8.4

Source reference: /affected/0/versions

0.8.5

Source reference: /affected/0/versions

0.8.6

Source reference: /affected/0/versions

0.8.7

Source reference: /affected/0/versions

0.8.8

Source reference: /affected/0/versions

0.8.9

Source 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
Read the original announcement