CVE-2026-44568 - Open WebUI has Stored XSS in Pending User Overlay via Incorrect DOMPurify Applic
CVE-2026-44568 - Open WebUI has Stored XSS in Pending User Overlay via Incorrect DOMPurify Applic
GHSA-fq3v-xjjx-95rc MEDIUM pip/open-webui
CVE: CVE-2026-44568
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):
{@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:
DOMPurify.sanitize(marked.parse(src)) // sanitize AFTER markdown parsingSteps 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 con
📌 来源: GitHub-Advisory | 🆔 CVE-2026-44568 | 📅 2026-05-08