Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAttacker deploys bearer-auth tool server
-
DeliveryVictim configures attacker server alongside OAuth-auth server
-
ExploitOAuth server processed last, cookies captured in shared closure
-
InstallVictim initiates AI tool call
-
C2Session cookies leak in HTTP request to attacker server
-
ExecuteAttacker replays session cookie against Open WebUI
-
ImpactFull account takeover achieved
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V14 - Data Protection Outbound data filtering
|
| Exploitation Conditions | Exploitation requires the victim to have configured at minimum two external tool servers in Open WebUI simultaneously: one that uses session or system OAuth authentication (which causes cookies to be captured in the shared closure) and one controlled by the attacker configured for bearer authentication (which receives the leaked cookies as an unintended recipient). Additionally, the session/OAuth server must be processed last in the tool initialization loop for its cookie jar to overwrite the shared closure variable affecting subsequent callables - meaning the ordering of tool servers in the configuration influences exploitability. User interaction is required: the victim must trigger a tool call during an active session. Exploitation is further limited to self-hosted Open WebUI deployments running versions 0.6.27 through 0.11.0; cloud-hosted deployments controlled by the Open WebUI project are unaffected if updated. Attackers who only send network traffic without controlling a server the victim has configured cannot exploit this vulnerability. |
| Impact | The provided CVSS 3.1 vector AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N scoring 6.8 (Medium) appropriately reflects the exploitation complexity. AC:H is warranted because the attack depends on a specific configuration: at least two tool servers must be active simultaneously, one using session/OAuth authentication and one under attacker control, and the OAuth server must be processed last in the loop. UI:R reflects that the victim must initiate a request that triggers a tool call. Despite the Medium CVSS score, the impact metrics C:H/I:H are accurate - successful exploitation yields full session takeover. No EPSS score was provided, and no KEV listing exists, so exploitation probability is inferred from the CVSS complexity and the requirement for attacker-controlled infrastructure. Real-world risk is meaningful for self-hosted AI deployments that integrate multiple external tool/MCP servers with mixed authentication models, a configuration common among power users and teams building AI pipelines. The absence of a PR:L/PR:H requirement from the attacker's side distinguishes this from typical authenticated flaws - the attacker needs only to operate a server the victim connects to, not to hold any account on the victim's Open WebUI instance. |
| Exploit ScenarioDerived | An attacker registers or operates a publicly accessible tool server configured for bearer token authentication and convinces a victim - or waits for an organization member - to add it alongside an existing session- or OAuth-authenticated tool server in their Open WebUI configuration. When the victim initiates any AI interaction that invokes a tool call, the closure bug causes the request to the attacker's server to carry the victim's Open WebUI session cookies; the attacker logs the incoming request, extracts the session cookie, and replays it against the Open WebUI instance to assume full control of the victim's account. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 09, 2026
Session cookie leakage in Open WebUI versions 0.6.27 through 0.11.0 allows an attacker who operates a connected tool server to capture a victim user's Open WebUI session cookies and achieve full account takeover. The root cause is a Python closure-in-loop bug in tools.py where a shared cookie jar from the enclosing async loop was captured by all tool callable functions instead of being bound per-function; when a session- or OAuth-authenticated tool server was processed last in the initialization loop, its cookies were incorrectly propagated into requests directed at other attached servers. Vendor-released patch version 0.11.1 is available; no public exploit code or CISA KEV listing has been identified at time of analysis.
RemediationAI
Vendor-released patch: upgrade to Open WebUI version 0.11.1 or later, available at https://github.com/open-webui/open-webui/releases/tag/v0.11.1. The fix was introduced via commit cd9db21c5276807a2975ddba17cef369ad1114b7 in PR #28630. Prior to patching, the most effective compensating control is to remove all untrusted or externally operated tool servers from the Open WebUI configuration, preventing an attacker from receiving leaked cookies entirely; this reduces tool integration functionality. As a secondary measure, avoid mixing session/OAuth-authenticated tool servers with bearer-authenticated tool servers in the same deployment - using only one authentication mode eliminates the cross-server cookie bleed, though this restriction may not be operationally feasible. Do not treat restricting tool servers as a long-term substitute for upgrading.
Affected VersionsENISA
Affected Packages
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
The vulnerability resides in backend/open_webui/utils/tools.py within the async get_tools function. The inner async make_tool_function closed over the cookies variable from the enclosing loop rather than receiving it as an explicit parameter - a classic Python closure-in-loop scoping defect where all closures share the last-assigned value of the captured variable. When tool servers are initialized in sequence, the cookie jar from whichever server used session or system OAuth authentication last would be shared across all subsequent tool callables, including those intended to communicate with bearer-auth servers. CPE cpe:2.3:a:open-webui:open-webui:*:*:*:*:*:*:*:* covers all affected versions. CWE-201 (Insertion of Sensitive Information Into Sent Data) accurately describes the mechanism: valid session cookies are unintentionally inserted into outbound HTTP requests destined for a different, potentially adversary-controlled server. The fix, visible in PR #28630 and commit cd9db21c5276807a2975ddba17cef369ad1114b7, passes cookies explicitly as a parameter to make_tool_function, scoping the cookie jar per-callable.
Know when Open Webui gets its next vulnerability
- 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
AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N
AV:N for network-accessible attacker server; AC:H for specific multi-server mixed-auth configuration requirement; PR:N as attacker controls only a third-party tool server; UI:R for victim-initiated tool call; C:H/I:H for full session takeover; A:N as no availability impact.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
Open WebUI is an extensible, feature-rich, and user-friendly self-hosted AI platform. From 0.6.27 until 0.11.1, backend/open_webui/utils/tools.py captured a cookie jar from the enclosing connection loop instead of binding it to each external tool callable. When multiple tool servers were attached and a session or system OAuth connection was processed last, a request to a different server configured for bearer authentication could include the calling user's Open WebUI session cookies, allowing that server's operator to reuse the session and take over the account. This issue is fixed in version 0.11.1.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
More in Open Webui
View allAn XSS vulnerability exists in open-webui/open-webui versions <= 0.3.8, specifically in the function that constructs the
A Stored Cross-Site Scripting (XSS) vulnerability exists in the chat file upload functionality of open-webui/open-webui
Attacker controlled files can be uploaded to arbitrary locations on the web server's filesystem by abusing a path traver
Stored cross-site scripting in Open WebUI's terminal port preview feature allows an authenticated attacker sharing a ter
In version v0.3.10 of open-webui/open-webui, the `api/v1/utils/pdf` endpoint lacks authentication mechanisms, allowing u
OAuth and SCIM identity confusion in Open WebUI 0.6.41-0.10.x (SQLite-backed deployments only) allows unauthenticated re
DNS rebinding SSRF in Open WebUI versions 0.9.6 through 0.11.0 allows authenticated users who control authoritative DNS
Denial of service in Open WebUI versions 0.9.0-0.11.0 allows unauthenticated remote attackers to stall the application s
In version 0.3.8 of open-webui, an endpoint for converting markdown to HTML is exposed without authentication. Rated hig
Open WebUI is a self-hosted artificial intelligence platform designed to operate entirely offline. [CVSS 7.3 HIGH]
Stored XSS in Open WebUI prior to version 0.7.0 allows authenticated users to inject malicious HTML payloads into chat d
Improper privilege management in Open WebUI 0.10.0 through 0.11.0 allows any authenticated low-privilege user with write
EUVD-2026-75174
GHSA-p78m-89r6-pgf7
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB