Description
Open WebUI is an extensible, feature-rich, and user-friendly self-hosted AI platform. From 0.10.0 until 0.11.0, src/lib/components/chat/Messages/Markdown/KatexRenderer.svelte could store and render a chat message whose math block makes KaTeX fail with a stack overflow instead of a parse error. The catch branch fell back to inserting the original math source into the page as HTML through {@html} rather than as text, so script in the message runs in the browser of whoever views it, including shared chats and channels. The viewer's session token in localStorage can be stolen, and an administrator viewer can have their account taken over. This issue is fixed in 0.11.0.
Published: 2026-08-04
Score: 8.7 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Open WebUI versions between 0.10.0 and 0.11.0 contain a stored cross‑site scripting flaw. When a user posts a math block that causes KaTeX to fail with a stack overflow, the fallback path inserts the raw math source into the page as HTML. As a result, any JavaScript inside the message runs in the browser of anyone who views the chat, including shared channels. The injected script can read the viewer’s session token stored in localStorage and perform an account takeover, which is especially dangerous for administrators.

Affected Systems

The vulnerability affects the Open WebUI product, specifically the open-webui open-webui library distributed in releases 0.10.0 through 0.11.0. All deployments running those released versions are susceptible until the fix in 0.11.0 is applied.

Risk and Exploitability

With a CVSS score of 8.7, this flaw is considered high severity. No EPSS data is available, and the vulnerability is not listed in CISA KEV. Exploitation requires an attacker to supply a crafted math block in a stored chat message, which is relatively easy if the application allows untrusted users to post messages. Any user who subsequently opens the chat can execute the attack, making the risk low‑threshold but significant for systems that expose chat functionality to multiple or external users.

Generated by OpenCVE AI on August 4, 2026 at 22:40 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Open WebUI to version 0.11.0 or later to remove the vulnerable KaTeX rendering path.
  • If immediate upgrade is not possible, disable or remove the KaTeX component from the chat rendering pipeline to prevent the fallback HTML insertion.
  • Audit existing chat content for unexpected math blocks and remove any that contain potential script payloads; consider rejecting or sanitizing math expressions until the fix is applied.

Generated by OpenCVE AI on August 4, 2026 at 22:40 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-pwxh-7358-jq2x Open WebUI: Stored XSS via unescaped KaTeX render-error fallback in rendered messages
History

Tue, 04 Aug 2026 23:00:00 +0000

Type Values Removed Values Added
First Time appeared Open-webui
Open-webui open-webui
Vendors & Products Open-webui
Open-webui open-webui

Tue, 04 Aug 2026 21:15:00 +0000

Type Values Removed Values Added
Description Open WebUI is an extensible, feature-rich, and user-friendly self-hosted AI platform. From 0.10.0 until 0.11.0, src/lib/components/chat/Messages/Markdown/KatexRenderer.svelte could store and render a chat message whose math block makes KaTeX fail with a stack overflow instead of a parse error. The catch branch fell back to inserting the original math source into the page as HTML through {@html} rather than as text, so script in the message runs in the browser of whoever views it, including shared chats and channels. The viewer's session token in localStorage can be stolen, and an administrator viewer can have their account taken over. This issue is fixed in 0.11.0.
Title Open WebUI: Stored XSS via unescaped KaTeX render-error fallback in rendered messages
Weaknesses CWE-79
References
Metrics cvssV3_1

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


Subscriptions

Open-webui Open-webui
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-04T20:53:36.141Z

Reserved: 2026-08-04T15:24:41.340Z

Link: CVE-2026-70492

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-04T22:45:03Z

Weaknesses
  • CWE-79

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