/

CVE-2026-70482

Severity:

HIGH RISK

(8.1)

OAuth Token Confusion (CWE-287) in Open WebUI Platform

CVE-2026-70482

Analyzed

Vulnerability type

Category:

Improper Authentication

CWE:

CWE-287

Impact:

Account Impersonation and Unauthorized Access

Severity:

HIGH RISK

(8.1)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

Open WebUI can accept an OAuth access token issued to a different client registered with the same identity provider and exchange it for an Open WebUI session. When OAuth token exchange is enabled, anyone holding such a token may be able to authenticate as the token's user without the operator having authorized the originating client.

Affected context

The issue occurs in Open WebUI deployments that enable OAuth token exchange and expose the provider-specific token exchange endpoint. Risk arises when the implementation validates only that the provider accepts the token through its userinfo endpoint, without also confirming that the token was issued to the OAuth client configured and trusted by Open WebUI.

Exploit preconditions

  • Attack surface: The /oauth/{provider}/token/exchange endpoint
  • Required access: Possession of a valid access token issued by the same OAuth provider, potentially for another registered client
  • Trigger point: Submission of the provider access token to the token exchange flow
  • Why exploitation is possible: The exchange process verifies the token's provider-side identity but does not adequately bind the token to the authorized OAuth client context

Why this happens

The underlying flaw is an authentication-boundary failure. Open WebUI treats successful validation by the provider's userinfo endpoint as sufficient proof that the token is acceptable for its own OAuth client, without validating the token's intended audience, client binding, or equivalent authorization context. This maps to CWE-287: Improper Authentication, because an identity assertion is accepted without adequately verifying that it was issued for the relying application.

Potential impact

  • An attacker may obtain an Open WebUI session representing the token's user
  • Unauthorized users may access conversations, files, models, or other resources available to that account
  • A compromised or third-party OAuth client may become an unintended path into the Open WebUI deployment
  • Account-level actions could be performed without the operator's intended client authorization

General mitigation guidance

Mitigation generally focuses on binding exchanged tokens to the intended OAuth client and enforcing a complete authentication context.

Common defensive patterns include:

  • Validate the token audience, authorized client, issuer, and other provider-specific claims where available
  • Use authorization-code flows with PKCE or another flow that binds authorization to the configured client
  • Reject tokens that were minted for unknown, untrusted, or unrelated clients
  • Keep OAuth token exchange disabled unless the deployment requires it
  • Minimize session privileges and apply least-privilege authorization after login
  • Treat provider userinfo validation as one authentication signal rather than proof of client authorization

How teams detect issues like this

Organizations can look for:

  • Static analysis and code review findings where userinfo success is treated as sufficient without audience or client validation
  • OAuth exchange handlers that accept raw bearer tokens without checking issuer, audience, client identity, or token type
  • Tests covering tokens issued to alternate clients at the same identity provider
  • Authentication logs showing token exchanges from unexpected clients, issuers, or application contexts
  • Policy controls requiring explicit OAuth client binding and negative authorization tests in CI pipelines

Sources

SourceLink
github.comgithub.com/open-webui/open-webui/commit/b190dcf3caa00dc8b7b9c7312828298d9143f60d
github.comgithub.com/open-webui/open-webui/commit/c4332be71e6e9c314e8a13b9d2819a6932561630
github.comgithub.com/open-webui/open-webui/releases/tag/v0.11.0
github.comgithub.com/open-webui/open-webui/security/advisories/GHSA-rq84-p6rr-vf89

Frequently asked

questions

Yes, where OAuth token exchange is enabled and the exchange endpoint is reachable. Exploitation does not necessarily require direct access to the Open WebUI host.

The attacker needs a valid access token issued by the same identity provider, including one minted for another client registered with that provider.

Bind exchanged tokens to the OAuth client authorized by Open WebUI and validate relevant issuer, audience, client, and token-context properties before creating a session.

Design authentication flows around explicit client binding, test cross-client token rejection, limit OAuth integrations to trusted applications, and monitor token exchanges for unexpected client contexts.

Find out what's already
exploitable in your codebase.