Skip to main content

Open WebUI CVE-2026-70482

| EUVDEUVD-2026-52887 HIGH
Improper Authentication (CWE-287)
2026-08-04 https://github.com/open-webui/open-webui GHSA-rq84-p6rr-vf89
8.8
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Register attacker OAuth app on same provider
  2. Delivery
    Lure victim to sign into it
  3. Exploit
    Capture provider access token for victim
  4. Execution
    POST token to token-exchange endpoint
  5. Persist
    Endpoint validates only via userinfo, issues session
  6. Impact
    Assume victim's (or admin's) Open WebUI account

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Authentication mechanism validation
MITRE ATT&CK

2 techniques across 2 tactics: Defense Evasion, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires the non-default setting ENABLE_OAUTH_TOKEN_EXCHANGE=True (disabled by default; stock deployments are unaffected). The victim must already have an Open WebUI account (the endpoint does not create users), and the attacker must obtain a provider-issued access token for that victim - typically by getting them to sign into an unrelated, attacker-registered OAuth app on the same provider. The provider must issue a subject identifier that is stable across OAuth clients: Google, GitHub, Okta, and default self-hosted OIDC are directly affected, whereas Microsoft Entra ID is NOT (per-application subjects) unless OAUTH_MERGE_ACCOUNTS_BY_EMAIL is enabled or OAUTH_SUB_CLAIM points at a globally stable claim such as oid. OAUTH_ALLOWED_DOMAINS does not limit the attack because the impersonated user is a legitimate domain member. Post-fix, the trust check is opt-in: OAUTH_TOKEN_EXCHANGE_TRUSTED_CLIENT_IDS must be set, and providers without RFC 7662 introspection (Google, Entra ID, GitHub, Feishu) have no safe configuration and should keep the feature disabled.

Impact

Signals are mostly consistent for a serious but conditionally-reachable flaw. The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H = 8.8) reflects full account takeover, and SSVC agrees on Technical Impact: total. However, SSVC marks Automatable: no and Exploitation: poc (not active), and EPSS is low at 0.34% (26th percentile) - this is NOT in CISA KEV. Publicly available exploit code exists (a documented PoC against a mock OIDC provider is in the GHSA advisory), but that is distinct from active exploitation, of which there is no evidence. The decisive limiter is that the vulnerable endpoint is gated behind ENABLE_OAUTH_TOKEN_EXCHANGE=True, which is disabled by default, so a stock deployment is unaffected - the raw 8.8 overstates real-world exposure for the typical install. Where token exchange IS enabled with a provider issuing globally-stable subject identifiers (Google, GitHub, Okta, generic OIDC), the risk is genuinely high because a targeted administrator yields an admin session with no victim interaction on Open WebUI itself. Net: prioritize for the subset of deployments that have explicitly enabled this feature; deprioritize elsewhere. Note the PR:N in the vector qualifies the attacker as unauthenticated to Open WebUI, though the attack does require possession of a victim's provider access token obtained out-of-band.

Exploit ScenarioDerived

On an Open WebUI instance running with ENABLE_OAUTH_TOKEN_EXCHANGE=True and a provider that issues client-stable subjects (e.g. Google or GitHub), an attacker registers their own self-service OAuth application on the same provider and lures the victim into signing into it, capturing a provider access token minted for the attacker's client. The attacker POSTs that token to /api/v1/auths/oauth/{provider}/token/exchange; because the endpoint only validates the token via the provider userinfo endpoint and performs no client/audience check, it issues an Open WebUI session for the victim - an administrator target yields an admin session. A working proof of concept is publicly documented in the GHSA advisory.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv2 – Sep 18, 2026

Account takeover in Open WebUI 0.8.0 through 0.11.0 lets an attacker who holds a provider-issued OAuth access token belonging to a victim exchange that token at the OAuth token exchange endpoint for a fully authenticated Open WebUI session as that user. The endpoint validates the presented token only via the provider's userinfo API, which confirms the token is live but never reveals which OAuth client it was issued to, so a token minted for any unrelated application on the same provider is accepted and the issued session inherits the victim's role - an administrator target yields an administrator session. CVSS 3.1 scores this 8.8 (AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H) reflecting unauthenticated network reach with attacker-induced victim interaction; the flaw only manifests when the non-default setting ENABLE_OAUTH_TOKEN_EXCHANGE=True is enabled, and publicly available exploit code exists, though EPSS is a low 0.34% (26th percentile) indicating limited observed exploitation. No CISA KEV entry confirms active exploitation at time of analysis.

Earlier versions of this analysis (1)
v1 Aug 04, 2026 - 20:17 CVSS 8.1

OAuth token exchange in Open WebUI 0.8.0-0.10.x enables full, silent account takeover when ENABLE_OAUTH_TOKEN_EXCHANGE=True because the endpoint accepted provider access tokens minted for any OAuth client without verifying the issuing client identity. The endpoint validated tokens exclusively via the provider's userinfo endpoint, which confirms token validity but never returns the client a token was issued to, allowing an attacker who captures a victim's token from any co-registered application to exchange it for a valid Open WebUI session - including administrator sessions with no role gating. A proof-of-concept is confirmed by the upstream advisory; no active exploitation is recorded in CISA KEV, and the CVSS 8.1 score reflects high confidentiality and integrity impact tempered by a required victim interaction step.

RemediationAI

Apply the vendor-released patch by upgrading to Open WebUI 0.11.0 (vulnerable range >= 0.8.0, < 0.11.0) using the upstream release at https://github.com/open-webui/open-webui/releases/tag/v0.11.0; the repairing commits are b190dcf3caa00dc8b7b9c7312828298d9143f60d and c4332be71e6e9c314e8a13b9d2819a6932561630, referenced from advisory https://github.com/open-webui/open-webui/security/advisories/GHSA-rq84-p6rr-vf89 (mirrored at https://github.com/advisories/GHSA-rq84-p6rr-vf89 and https://vuldb.com/vuln/385939). Critically, upgrading alone does not close the hole: the new trusted-client check is opt-in, so any deployment running ENABLE_OAUTH_TOKEN_EXCHANGE=True must also set OAUTH_TOKEN_EXCHANGE_TRUSTED_CLIENT_IDS to the exact client identifier(s) Open WebUI is authorised to accept - with the list unset the endpoint reverts to its pre-fix behaviour. Because that variable is a deploy-time environment setting that cannot be altered through the admin interface, a compromised administrator session cannot widen the trust boundary at runtime. If the identity provider does not implement RFC 7662 token introspection - Google, Microsoft Entra ID, GitHub and Feishu all fall into this group - there is no safe way to constrain the check, and ENABLE_OAUTH_TOKEN_EXCHANGE should simply be left off; for operators who do not need this feature at all, disabling it entirely is the lowest-risk mitigation and eliminates the attack surface while having no effect on the standard authorization-code login flow. Where an operator must keep token exchange enabled against an introspection-capable provider during a delayed upgrade window, the interim compensating control is to restrict token exchange to a trusted client ID allowlist at the identity provider itself and to monitor for OAuth sessions established without a preceding authorization-code callback, accepting that this is detection rather than prevention and does not protect against tokens already circulating.

Affected VersionsENISA

open-webui 0.8.0, < 0.11.0

Affected Packages

pypi open-webui fix: 0.11.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Open WebUI's POST /api/v1/auths/oauth/{provider}/token/exchange handler (backend/open_webui/routers/auths.py, token_exchange) implements a non-standard shortcut that skips the OAuth authorization-code step entirely and instead accepts a raw provider access token supplied by the caller, validating it with a userinfo lookup. That is a fundamental identity-binding failure classed as CWE-287 (Improper Authentication): a userinfo response answers only 'is this token valid and who is the subject?', never 'which OAuth client was this token minted for?'. Because the endpoint performed no independent audience or client-identifier check, it had no way to distinguish a token issued to Open WebUI's own registered client from one issued to an attacker-controlled application on the same identity provider. The attack hinges on subject-identifier stability: Google, GitHub, Okta and default self-hosted OIDC servers return the same 'sub' across all clients, so an attacker-registered app observes the same subject stored on the victim's Open WebUI account and the exchange matches. Microsoft Entra ID issues per-application subjects, so the match fails there unless OAUTH_MERGE_ACCOUNTS_BY_EMAIL is enabled or OAUTH_SUB_CLAIM is pointed at a globally stable claim such as 'oid'. The standard authorization-code callback is unaffected because its token is obtained through a client-secret-authenticated exchange and the resulting ID token's audience is validated. The upstream fix adds RFC 7662 token introspection, calls BasicAuth with the configured client credentials, and honours only the introspected client_id - deliberately ignoring the 'aud' field, since 'aud' names intended resource servers rather than the issuing client and several providers let any client place another client's identifier there.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/open-webui/open-webui) PRIMARY HIGH
NVD 8.8 HIGH
AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
vuln.today AI 8.8 HIGH

Unauthenticated network endpoint (PR:N); victim must sign into a separate app to leak a token (UI:R); full account/admin takeover gives C:H/I:H/A:H; impact confined to Open WebUI so S:U.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/open-webui/open-webui).

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

3
Analysis Updated
Sep 18, 2026 - 14:58 vuln.today
v2 - CVSS changed
CVSS changed
Sep 18, 2026 - 14:52 NVD
8.1 (HIGH) 8.8 (HIGH)
CVE Published
Aug 04, 2026 - 19:52 github-advisory
HIGH 8.1

DescriptionNVD

Summary

The OAuth token exchange endpoint accepts a raw provider access token and validates it by calling the provider's userinfo endpoint. A userinfo endpoint reports only that a token is valid, never which OAuth client it was issued to, and the endpoint performed no audience or client check of its own. Anyone holding an access token minted for any client registered with the same provider could exchange it for an Open WebUI session as that token's user, including applications the operator does not control and has never authorised.

Preconditions

  • ENABLE_OAUTH_TOKEN_EXCHANGE=True. Disabled by default, so a stock deployment is not affected.
  • The victim already has an Open WebUI account. The endpoint does not create users.
  • The attacker can obtain a provider access token for the victim, typically by having them sign in to an unrelated OAuth application on the same provider. On public providers, registering that application is self-service.
  • The subject identifier the attacker's client observes matches the one stored on the victim's account. Google, GitHub, Okta and self-hosted OIDC servers in default configuration issue a subject that is stable across all clients and are directly affected. Microsoft Entra ID issues per-application subjects, so the match fails there unless OAUTH_MERGE_ACCOUNTS_BY_EMAIL is enabled or OAUTH_SUB_CLAIM points at a globally stable claim such as oid.
  • OAUTH_ALLOWED_DOMAINS is enforced on this endpoint but does not constrain the attack, because the impersonated user is a legitimate member of an allowed domain.

Impact

Full account takeover of any user whose provider access token the attacker can obtain. The endpoint applies no role gating, so the issued session carries the target account's role, and a targeted administrator yields an administrator session. The victim never interacts with Open WebUI and has no opportunity to notice.

The standard OAuth callback is not affected. It obtains its token through an authorization-code exchange authenticated with the client secret, so the token is inherently bound to Open WebUI's own client, and the ID token's audience is validated.

Fix

Fixed in 0.11.0. The endpoint now resolves which OAuth client a presented token was issued to through RFC 7662 token introspection, and rejects tokens minted for any client not named in OAUTH_TOKEN_EXCHANGE_TRUSTED_CLIENT_IDS. Only the introspected client_id is honoured; the aud field is ignored, because it names intended resource servers rather than the issuing client and several providers let any client place another client's identifier there.

Upgrading alone is not sufficient. The check is opt-in: with OAUTH_TOKEN_EXCHANGE_TRUSTED_CLIENT_IDS unset the endpoint behaves as it did before, so any deployment running with ENABLE_OAUTH_TOKEN_EXCHANGE=True must also set that list. It is a deploy-time environment variable and cannot be changed from the admin interface, so a compromised administrator session cannot widen the trust boundary at runtime.

Providers that do not implement RFC 7662 introspection, including Google, Microsoft Entra ID, GitHub and Feishu, cannot be restricted this way at all. On those, token exchange has no safe configuration and should be left disabled.

Root cause

  • backend/open_webui/routers/auths.py, token_exchange (POST /api/v1/auths/oauth/{provider}/token/exchange)

Token exchange skips the authorization-code step entirely and trusts a token supplied by the caller. The only validation performed was a userinfo lookup, which answers whether a token is valid rather than who issued it, so the endpoint had no way to distinguish a token minted for Open WebUI from one minted for an unrelated application.

Proof of concept

Reproduced against a mock OIDC provider serving two tokens for the same end user, minted for two different clients, with OAUTH_ALLOWED_DOMAINS=corp.example actively enforced.

CaseTokenResult
Controlnot recognised by the provider400 rejected
Outsider's own account, non-allowed domainminted for attacker-evil-app403 blocked by domain allowlist
Victim's account, foreign clientminted for attacker-evil-app200, session issued for victim@corp.example

The issued session token was confirmed usable: GET /api/v1/auths/ returned 200 authenticated as the victim. The provider log recorded the token as minted for client_id='attacker-evil-app', while Open WebUI's own client is openwebui-client-id.

Credits

Reported by @Classic298.

Executive ViewAI

Why It Matters

A high-severity account takeover flaw in Open WebUI versions 0.8.0 through 0.11.0 allows an attacker holding any OAuth access token from the same identity provider to obtain a fully authenticated Open WebUI session, including administrator sessions if an administrator's token is used. The exposure is limited to deployments that have opted into the non-default OAuth token exchange feature, but where enabled it places user and administrative accounts, and any data or integrations those accounts can reach, at risk of full compromise.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.3%
Top 74% exploitable
Prevalence
Medium
popular self-hosted LLM UI, but vulnerable feature off by default
Threat Intel
1
1 sources
Exploit
POC
Public exploit code exists
Social Media
2
Sightings
Data Quality
7 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

64
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy