GHSA-fq3v-xjjx-95rc — open-webui
MEDIUMGHSA-fq3v-xjjx-95rc is a medium-severity (CVSS 4.8) Cross-site Scripting (XSS) vulnerability in open-webui. A fix is available for open-webui — see the affected versions and patch details below.
Open WebUI has Stored XSS in Pending User Overlay via Incorrect DOMPurify Application Order
Exploitation Status
Proof-of-concept exploit code exists
- CISA’s SSVC triage found public proof-of-concept exploit code for this CVE, though no confirmed active exploitation.
Exploitation and automatability from CISA’s SSVC triage for GHSA-fq3v-xjjx-95rc.
EPSS Exploitation Probability
EPSS (Exploit Prediction Scoring System) is a daily probability model maintained by FIRST.org. It estimates the likelihood a CVE will be exploited in production environments within the next 30 days, derived from real-world threat intelligence signals.
How urgent is this, really
GHSA-fq3v-xjjx-95rc plotted by exploitation likelihood (EPSS) against impact (CVSS). The shaded corner — EPSS 50%+ and CVSS 7.0+ — is where this CVE doesn't sit, though severity or exploitability alone can still warrant action.
Where this sits among everything scored
Of 379,145 CVEs with a current EPSS score, this one falls in the < 10% band (highlighted). Real counts from FIRST.org, not a sample — log-scaled since the landscape is heavily right-skewed.
Real-World Exposure
open-webuiReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects PyPI packages — download data is not available via public APIs for these ecosystems.
Description
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 parsing
Steps to Reproduce
Prerequisites
- Open WebUI v0.8.10
- Admin account
- A second user account with "pending" role
Steps
-
Log in as admin and navigate to Admin Settings → Settings → General.
-
Set Default User Role to
pending. -
In the Pending User Overlay Content field, enter:
# Account Pending
Your account is under review.
[Contact Support](javascript:alert(document.domain))
-
Save the settings.
-
In a separate browser (or incognito window), create a new account or log in as a pending user.
-
The pending overlay is displayed. Click the "Contact Support" link.
-
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:
<!-- 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" />Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐍PyPI | open-webui | all versions | 0.9.0pip install --upgrade 'open-webui==0.9.0' |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for open-webui, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update open-webui to 0.9.0 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-fq3v-xjjx-95rc is resolved across your whole dependency graph.
Workarounds
Escape or sanitise the affected output on the server side rather than relying on client-side filtering, and add a Content-Security-Policy that blocks inline script execution so injected markup cannot run even if it reaches the page.
How O3 protects you
O3 Security's impact-aware SCA analyses which vulnerable code paths your application actually calls, so a match like GHSA-fq3v-xjjx-95rc can be triaged on real exposure rather than presence alone.
Tailored to GHSA-fq3v-xjjx-95rc. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.
Frequently Asked Questions
Is GHSA-fq3v-xjjx-95rc in your dependencies?
O3 Security finds GHSA-fq3v-xjjx-95rc across PyPI dependencies, including transitive ones, and its impact-aware SCA ranks findings by whether your code actually calls the vulnerable path.