CVE-2026-45318

Open WebUI: Stored XSS via unsanitized Office/Excel/DOCX file preview rendering ({@html} without DOMPurify)

Published May 15, 2026 CVSS 3.1 · 5.4 Medium EPSS < 1% KEV · Not listed
Description
Open WebUI is a self-hosted artificial intelligence platform designed to operate entirely offline. Prior to 0.9.3, his advisory tracks a regression of the original Excel-preview XSS (CVE-2026-44549). The same root cause — XLSX.utils.sheet_to_html() output rendered via {@html excelHtml} without DOMPurify — was reintroduced sometime after v0.8.0 and is exploitable again This vulnerability is fixed in 0.9.3.

Analysis

AI-generated

Technical impact

Open WebUI allows an attacker to execute arbitrary JavaScript in the context of the client’s browser by embedding malicious code within an Office/Excel/DOCX file that is rendered as HTML. The rendering process uses XLSX.utils.sheet_to_html() to generate HTML and then injects that output into the page via {@html excelHtml} without applying DOMPurify, creating a classic stored XSS vulnerability. An attacker who can supply a malicious file can steal session cookies, perform credential theft, or take control of the victim’s session, thereby compromising confidentiality and integrity of user data.

Affected Systems

The affected product is open-webui by open-webui. Versions released before 0.9.3 are vulnerable; the flaw was reintroduced sometime after v0.8.0 and is fixed in 0.9.3. No additional products or versions are listed.

Risk and Exploitability

The CVSS score of 5.4 indicates a moderate severity. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog, suggesting low to moderate exploitation probability. Exploitation requires the ability to upload or otherwise provide a malicious Office/Excel/DOCX file that will be previewed, so users with upload privileges are at risk. Once executed, injected scripts run with the privileges of the viewing user, enabling session hijacking or data exfiltration. The lack of an active KEV listing reduces the likelihood of widespread exploitation, but the presence of a moderate CVSS score warrants prompt remediation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to open-webui version 0.9.3 or later to deploy the vendor fix.
  • If upgrading immediately is not feasible, temporarily restrict access to file upload functionality to trusted users only or block the preview feature for Office/Excel/DOCX files.
  • Consider implementing input sanitization or disabling the {@html excelHtml} rendering for untrusted content until a patch is applied.

Generated by OpenCVE AI on May 16, 2026 at 00:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-hcwp-82g6-8wxc Open WebUI has stored XSS via unsanitized Office/Excel/DOCX file preview rendering ({@html} without DOMPurify)
History
Type Values Removed Values Added
First Time appeared Openwebui
Openwebui open Webui
CPEs cpe:2.3:a:openwebui:open_webui:*:*:*:*:*:*:*:*
Vendors & Products Openwebui
Openwebui open Webui
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Open-webui
Open-webui open-webui
Vendors & Products Open-webui
Open-webui open-webui
Type Values Removed Values Added
Description Open WebUI is a self-hosted artificial intelligence platform designed to operate entirely offline. Prior to 0.9.3, his advisory tracks a regression of the original Excel-preview XSS (CVE-2026-44549). The same root cause — XLSX.utils.sheet_to_html() output rendered via {@html excelHtml} without DOMPurify — was reintroduced sometime after v0.8.0 and is exploitable again This vulnerability is fixed in 0.9.3.
Title Open WebUI: Stored XSS via unsanitized Office/Excel/DOCX file preview rendering ({@html} without DOMPurify)
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 5.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
May 18, 2026, 12:45 PM
Reserved
May 11, 2026, 8:50 PM
Status
Analyzed
Published
May 15, 2026, 10:16 PM
Modified
Nov 11, 2026, 8:10 PM