PT-2026-41171 · Unknown · Open-Webui
Published
2026-05-09
·
Updated
2026-05-16
·
CVE-2026-45318
CVSS v2.0
5.5
Medium
| Vector | AV:N/AC:L/Au:S/C:P/I:P/A:N |
Name of the Vulnerable Software and Affected Versions
Open WebUI versions prior to 0.9.3
Description
Open WebUI renders user-uploaded Office files, such as Excel and DOCX, as HTML using the
{@html} directive without applying DOMPurify sanitization. This lack of sanitization allows for Stored Cross-Site Scripting (XSS), where a malicious document uploaded to the platform can execute arbitrary scripts in the browser of any user who previews the file. This can lead to session hijacking, account takeover, and data exfiltration of chat histories or API keys.The issue occurs in three specific rendering paths:
- The
fileOfficeHtmlvariable in the 'FilePreview.svelte' component. - The
excelHtmlvariable in the 'FileItemModal.svelte' component, specifically involving theXLSX.utils.sheet to html()function. - The
docxHtmlvariable in the 'FileItemModal.svelte' component.
Recommendations
Update to version 0.9.3.
As a temporary workaround, restrict the upload and preview of Office files (Excel, DOCX, PPT) until the update is applied.
Exploit
Fix
XSS
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Open-Webui