
Open WebUI deployments that enable OAuth token exchange against a shared identity provider carry an authentication bypass risk tracked as CVE-2026-70482. The flaw allows anyone holding a valid access token issued to any client of the same identity provider to exchange it for an authenticated Open WebUI session, impersonating the token's owner. It affects versions 0.8.0 through 0.10.x only when ENABLE_OAUTH_TOKEN_EXCHANGE is set, and it is fixed in v0.11.0 through a trusted-client-ID allowlist. Because the exchange endpoint validates tokens solely against the provider's userinfo endpoint, exploitation proceeds over the network without user interaction and leaves few obvious traces. Operators of affected instances therefore need a concrete way to determine whether the endpoint was abused and a defined sequence for re-securing it. This article covers the advisory's affected-version and configuration table, the log indicators that expose unexpected exchanges, and the post-patch configuration required to re-enable the feature safely.

The vulnerable code path lives in the POST /oauth/{provider}/token/exchange handler. When a request arrives, the handler forwards the supplied raw access token to the identity provider’s userinfo endpoint. If the provider returns a valid user profile, Open WebUI immediately creates an authenticated session for that user without inspecting the token’s aud (audience) or client_id claims【1†content】.
According to RFC 8693 – OAuth 2.0 Token Exchange, a server must verify that the token presented for exchange is intended for the requesting client; the audience claim should match the client’s identifier【2†content】. By skipping this validation, the implementation violates the specification and maps to CWE‑287 (Improper Authentication)【3†content】.
Because major IdPs (Google, Microsoft Entra ID, Okta) return a user profile for any token they issued, any valid access token issued to any application registered under the same tenant can be exchanged for an Open WebUI session. The attacker needs only the token value—no user interaction, no additional permissions—making the flaw widely exploitable【6†content】.
The issue is confined to versions 0.8.0 through 0.10.x when the environment variable ENABLE_OAUTH_TOKEN_EXCHANGE=True is set【3†content】. In Open WebUI v0.11.0 the handler was corrected to extract the client_id claim from the IdP response and compare it against a whitelist of trusted client IDs before minting a session【5†content】. This change restores the required audience validation and mitigates the bypass.
In short, the missing audience check allowed any token recognized by the shared IdP to be repurposed as an Open WebUI authentication credential, exposing the system to unauthenticated session creation and user impersonation.

| Condition | Description | How to verify | |
|---|---|---|---|
| Version | Open WebUI 0.8.0 → 0.10.x (any 0.10.x release) | docker run --rm openwebui/open-webui --version <br>or check package.json / pip show open-webui for the version string. | |
| Feature flag | ENABLE_OAUTH_TOKEN_EXCHANGE=True (opt‑in; default is False) | Grep the runtime environment: <br>`env | grep ENABLE_OAUTH_TOKEN_EXCHANGE` <br>or inspect the Docker compose / Helm values file. |
| Shared IdP tenant | The Open WebUI instance uses the same identity‑provider tenant as at least one other OAuth client application. | List all clients registered in the IdP tenant (e.g., via the provider’s admin console or by calling its client‑list API). |
Exposure only occurs when all three conditions are met. If any condition is false—e.g., the instance runs on a dedicated tenant with no other clients—the token‑exchange endpoint cannot be abused via cross‑client token reuse.
Confirm the deployed version
bash\n# Docker example\ndocker images | grep openwebui\n
The version must fall within 0.8.0–0.10.x as shown in the advisory’s product table【source0】.
Check the feature flag
bash\nprintenv ENABLE_OAUTH_TOKEN_EXCHANGE\n
If the output is True, the endpoint is active. The flag is not enabled by default, so its presence indicates an intentional configuration change.
Inventory other clients in the IdP tenant
If the answer to all three steps is “yes”, the instance is vulnerable to CVE‑2026‑70482.
A separate issue, tracked as GHSA‑4qg5‑cxx4‑g927, affected Open WebUI 0.8.0–0.9.0 and allowed token exchange to bypass the OAUTH_ALLOWED_DOMAINS check. That flaw was fixed in v0.9.0 by adding domain validation to the exchange endpoint【ghsa0】.
client_id/aud claims, allowing any token from the same IdP tenant to be exchanged, regardless of domain.Operators should therefore verify both mitigations when upgrading: ensure the version is ≥ 0.11.0 for the CVE‑2026‑70482 fix, and confirm that any previous domain‑allowlist patches are present (i.e., the version is ≥ 0.9.0).
References

How the attack works
An attacker who already possesses a valid access token issued by the same identity provider (IdP) can obtain an authenticated Open WebUI session with a single HTTP request:
{/oauth}/{provider}/token/exchange with the raw provider token in the request body. No CSRF token, cookie, or browser interaction is required.userinfo endpoint. Because the endpoint only checks that the token is accepted, any token that the IdP recognizes is treated as valid.userinfo and returns a session cookie to the attacker.The vulnerability exists only when the configuration flag ENABLE_OAUTH_TOKEN_EXCHANGE=True is set on versions 0.8.0 – 0.10.x [source 1]. The code never inspects the token’s aud (audience) or client_id claim, violating the OAuth 2.0 Token Exchange specification (RFC 8693) and allowing any token from the same IdP tenant to be reused [source 4].
What the attacker gains
Once a session is minted, the attacker acts as the token’s owner:
Because the exchange is silent and network‑based, exploitation leaves minimal log traces beyond a successful POST to the exchange endpoint.
Shared‑tenant amplification
Open WebUI often shares an IdP tenant with other internal applications or third‑party services. An organization that cannot enforce security across every registered client effectively extends the attack surface of Open WebUI to those applications. A token leaked from a low‑risk internal tool or a compromised third‑party app becomes a weapon against the AI workspace, regardless of where the token originated.
Why the default‑off flag matters
The vulnerable functionality is gated by ENABLE_OAUTH_TOKEN_EXCHANGE. When the flag is left at its default (False), the exchange endpoint is disabled and the attack vector disappears. Operators who require token exchange must upgrade to v0.11.0 and configure a whitelist of trusted client IDs (OAUTH_TOKEN_EXCHANGE_TRUSTED_CLIENT_IDS) to limit acceptance to known applications [source 5]. Until then, the safest stance is to keep the feature disabled, reducing both the attack surface and the potential blast radius.

Primary indicator – anomalous POSTs to the exchange endpoint
POST /oauth/{provider}/token/exchange requests that originate from IP ranges not previously seen for any legitimate user.userinfo endpoint was called and the client_id returned.Secondary indicators
| Indicator | What to look for | Where to find it |
|---|---|---|
| Session created without a prior interactive login | A session entry appears with no preceding /login request for the same user. | Open WebUI session log (session.log or equivalent) and reverse‑proxy logs. |
Mismatched client_id | The client_id claim returned by the IdP’s userinfo does not match any client ID registered for Open WebUI. | IdP audit log (contains the client_id claim) + Open WebUI config (OAUTH_TOKEN_EXCHANGE_TRUSTED_CLIENT_IDS). |
| Immediate access to privileged resources | Right after a new session, the same IP fetches conversation histories, model configurations, or admin APIs. | Resource‑access logs (e.g., /api/conversations/*, /api/models/*). |
Alerting rules (example SIEM queries)
High request volume – trigger when more than 10 POST /oauth/*/token/exchange calls occur within a 1‑minute window:
SELECT count(*) FROM logs
WHERE request_path LIKE '/oauth/%/token/exchange'
AND @timestamp BETWEEN now() - 60s AND now()
HAVING count(*) > 10
New‑IP session creation – alert when a session is created via token exchange from an IP address that has no prior successful login for that user:
SELECT user, ip FROM session_events
WHERE method='exchange' AND NOT EXISTS (
SELECT 1 FROM login_events
WHERE login_events.user = session_events.user
AND login_events.ip = session_events.ip
AND login_events.timestamp < session_events.timestamp
)
Client‑ID mismatch – fire when the client_id extracted from the IdP response is absent from the OAUTH_TOKEN_EXCHANGE_TRUSTED_CLIENT_IDS allowlist:
SELECT user, client_id FROM token_exchange_events
WHERE client_id NOT IN (SELECT allowlist_id FROM env_vars WHERE name='OAUTH_TOKEN_EXCHANGE_TRUSTED_CLIENT_IDS')
Operational recommendations
/oauth/.../token/exchange handler. Even pre‑patch versions expose the client_id field in the IdP’s response; logging it gives the data needed for the mismatch rule.ENABLE_OAUTH_TOKEN_EXCHANGE=True) was in production, because successful exchanges leave no visible user‑side artefacts.These indicators and rules give operators a concrete detection path for CVE‑2026‑70482, enabling them to confirm abuse before applying the v0.11.0 fix.
Sources: SentinelOne advisory on CVE‑2026‑70482 – monitoring recommendations and IoC list.

The core evidence of CVE‑2026‑70482 is an audience mismatch: the client_id embedded in the access token presented to Open WebUI’s /oauth/{provider}/token/exchange endpoint does not correspond to the client ID registered for the Open WebUI instance. This mismatch is observable only when Open WebUI logs are joined with the identity‑provider (IdP) audit logs — a practice that the advisory recommends but does not guarantee (CVE‑2026‑70482 overview).
Centralize logs
token/exchange requests, session‑creation events, and recorded client_id values) and IdP audit logs (token issuance, userinfo calls, and client‑ID metadata) to a common SIEM such as Elastic Stack, Splunk, or Azure Sentinel.Join on timestamp and token
client_id reported by the IdP’s userinfo response.client_id the token was originally issued to.Identify anomalous IPs
Post‑patch monitoring and drift detection
OAUTH_TOKEN_EXCHANGE_TRUSTED_CLIENT_IDS allow‑list), implement a dashboard that visualises token‑exchange volume, correlates it with normal login patterns, and highlights mismatched client_id occurrences.OAUTH_TOKEN_EXCHANGE_TRUSTED_CLIENT_IDS. Any divergence triggers an alert, preventing configuration drift (Monitoring recommendations).userinfo endpoint and does not verify the token’s audience (client_id), enabling any valid token from the same IdP to be exchanged for an Open WebUI session (CVE‑2026‑70482 overview).By systematically applying the workflow above, operators can both confirm whether the token‑exchange endpoint has been abused and establish continuous assurance that the post‑patch configuration remains secure.

Open WebUI 0.11.0 (and later) introduces a hard‑coded check that compares the client_id claim returned by the IdP with a whitelist supplied through the environment variable OAUTH_TOKEN_EXCHANGE_TRUSTED_CLIENT_IDS. The handler performs RFC 7662 token‑introspection and rejects any exchange request whose client ID is not on the list, closing the bypass described in CVE‑2026‑70482【source1】.
openwebui --version or container tag).export ENABLE_OAUTH_TOKEN_EXCHANGE=True
export OAUTH_TOKEN_EXCHANGE_TRUSTED_CLIENT_IDS="webui-client-01,webui-client-02"
The list is parsed at start‑up; each entry is stripped of surrounding spaces before comparison【source2】.export OAUTH_TOKEN_EXCHANGE_RATE_LIMIT_WINDOW=180
/oauth/{provider}/token/exchange endpoint, and confirm that the response is 401 Unauthorized (or 403 depending on the IdP) rather than a session cookie【source2】.OAUTH_TOKEN_EXCHANGE_TRUSTED_CLIENT_IDS is empty or unset, the handler falls back to the pre‑patch logic and accepts any provider token, preserving the original vulnerability【source3】.ENABLE_OAUTH_TOKEN_EXCHANGE=False.If upgrading cannot be performed immediately, mitigate the risk by:
ENABLE_OAUTH_TOKEN_EXCHANGE=False)./oauth/*/token/exchange at a reverse proxy or WAF.limit_req) to throttle attempts.These steps reduce exposure while you prepare the full patch and trusted‑client configuration.

1. Apply the official patch
Upgrade every instance to Open WebUI v0.11.0 or newer, then set an explicit allow‑list of client IDs:
export ENABLE_OAUTH_TOKEN_EXCHANGE=True
export OAUTH_TOKEN_EXCHANGE_TRUSTED_CLIENT_IDS="webui-client-1,webui-client-2"
(see the post‑patch configuration example [3]). The allow‑list blocks token exchange for any OAuth token that does not belong to a listed client, closing the root cause of CVE‑2026‑70482 [6].
2. Rotate credential material
3. Invalidate existing sessions
| Condition | Action |
|---|---|
| Redis not configured | JWTs cannot be revoked; they remain valid until natural expiry (default ≈ 4 weeks) [2]. |
| Redis configured | Set up a Redis instance and point Open WebUI to it (e.g., REDIS_URL=redis://…). This enables per‑token revocation on sign‑out, password change, or account deactivation. |
If the revocation check cannot reach Redis, Open WebUI fails open and logs Revocation check failed; accepting token at most once per minute per worker process [1]. Monitor this log line and the health of the Redis endpoint; its availability is now part of the authentication attack surface.
4. Detect any ongoing abuse
Forward Open WebUI logs and IdP audit logs to a SIEM.
Create alerts for:
/oauth/{provider}/token/exchange (e.g., > 10 /min).client_id returned by the IdP does not match the whitelist.These indicators are described in the advisory’s monitoring guidance [0].
5. Notify and remediate affected users
6. Harden the deployment architecture
ENABLE_OAUTH_BACKCHANNEL_LOGOUT=true) so that IdP‑initiated logout revokes all JWTs when Redis is present [4].7. Verification checklist
OAUTH_TOKEN_EXCHANGE_TRUSTED_CLIENT_IDS set.