Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconObtain low-privileged Open WebUI account
-
DeliveryCraft math block with 100k nested braces and embedded HTML payload
-
ExploitPost message to shared chat or readable channel
-
InstallLure or wait for target to open the chat page
-
C2KaTeX RangeError triggers unescaped {at}html fallback
-
ExecuteInjected script executes on Open WebUI origin
-
ImpactExfiltrate localStorage session token to attacker-controlled host
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The attacker must hold a valid, low-privileged Open WebUI user account on the target instance (confirmed by CVSS PR:L); no administrative role, no special permission, and no non-default configuration are required on either the attacker or victim side. The application must be running a vulnerable 0.10.x release. The sole exploitation constraint is passive victim interaction: the target must open a page that renders the attacker's message - opening a shared chat link, viewing a channel, or navigating to any message surface is sufficient; no further clicks or confirmations are required (CVSS UI:R). What limits exploitation in practice is this required viewer interaction and the need for an attacker-controlled account, making unauthenticated or fully automated exploitation impossible. Server-side data and availability are entirely unaffected; impact is confined to the browser session of whoever views the content. |
| Impact | The vendor-assigned CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N, score 8.7) is independently supported by the description. Attack complexity is genuinely low: the trigger is a single crafted message, requires no race condition or environment-specific precondition, and the proof-of-concept is a one-liner Python command. The UI:R requirement is a limiting factor but a weak one - the victim need only open a page that renders the message, not click or approve anything within it; a shared chat link or a channel the target regularly reads suffices. The S:C scope change and C:H/I:H ratings are accurate because successful exploitation transfers the viewer's session token, enabling full account takeover, and if the viewer holds admin rights that escalates to instance-wide compromise. No EPSS score was present in the input data, so probability quantification is unavailable. No CISA KEV listing exists, meaning confirmed in-the-wild mass exploitation is not established, but the public POC demonstrably achieves the claimed impact. The combination of trivial exploit mechanics, a working published POC, low attacker prerequisites (any user account), and high-value impact (admin session takeover) makes this a genuine remediation priority for any 0.10.x deployment, not merely a paper-high CVSS score. |
| Exploit ScenarioDerived | An attacker with a standard Open WebUI user account posts a single message to a shared chat or a channel the target reads; the message body is a |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 04, 2026
Stored cross-site scripting in Open WebUI 0.10.0-0.10.2 allows any authenticated user to craft a math block that causes a KaTeX RangeError (stack overflow from deeply nested braces), forcing the KatexRenderer.svelte error fallback to inject unescaped HTML directly into the DOM via Svelte's {@html} directive. Any user who subsequently views the message - including administrators - executes attacker-controlled JavaScript on the Open WebUI origin, enabling session token theft from localStorage and full account takeover. A detailed, weaponizable proof-of-concept is publicly documented in the vendor GHSA advisory, including demonstrated administrator session exfiltration; no CISA KEV listing has been identified at time of analysis.
RemediationAI
The definitive fix is to upgrade Open WebUI to version 0.11.0 or later; no configuration change is needed and the upgrade fully resolves the vulnerability. The patch (commit bc600d3f085802c45aa8f38c30e6e8c986bde6cc, PR #26718 at https://github.com/open-webui/open-webui/pull/26718) HTML-escapes the KaTeX fallback string before DOM insertion, replacing &, <, and > with their respective HTML entities so that a failed render displays the formula as inert text rather than executable markup. If immediate upgrade is not feasible, the most targeted compensating control is to restrict message-posting permissions to a minimal set of trusted user accounts, which reduces the population of potential attackers but does not eliminate the risk since any authenticated account is sufficient for exploitation. Disabling KaTeX math rendering entirely (requiring a custom build modification) would eliminate this specific attack surface at the cost of losing math display functionality. Monitoring ingested messages for sequences of thousands of consecutive { characters can aid in detection but is not a reliable preventive control. No server-side configuration change mitigates this vulnerability in unpatched versions.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The flaw lives in src/lib/components/chat/Messages/Markdown/KatexRenderer.svelte (Open WebUI releases 0.10.0-0.10.2, CPE: pkg:pip/open-webui). KaTeX was initialized with throwOnError: false, which suppresses standard ParseError exceptions but does not intercept JavaScript RangeError exceptions thrown when the engine recurses into deeply nested brace structures. The component's catch block treated all render failures uniformly: it assigned the original, unmodified math source string to the variable rendered with Svelte's {@html} directive, which intentionally bypasses HTML escaping. Because the Markdown tokenizer captures everything between math delimiters verbatim - including angle brackets and complete HTML tags - the attacker exercises complete control over the string injected into the DOM. Root cause class is CWE-79 (Improper Neutralization of Input During Web Page Generation - Stored XSS), with the specific trigger being the unguarded error path rather than the primary render path.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Network delivery of stored payload, no attack complexity, low-privilege account required, passive viewer interaction needed, cross-origin session impact with full confidentiality and integrity loss, no server availability effect.
Primary rating from Vendor (https://github.com/open-webui/open-webui).
CVSS VectorNVD
Lifecycle Timeline
3DescriptionNVD
Summary
Any authenticated user can store a chat message whose math block makes KaTeX fail with a stack overflow instead of a parse error. When that happens the renderer falls back to inserting the original math source into the page as HTML rather than as text, so script in the message runs in the browser of whoever views it. Every surface that renders messages is affected, including shared chats and channels, and the missing control is output escaping on the error path.
Preconditions
Default configuration, no flags involved. The attacker needs a normal user account and a way to get the target to open the content: a shared chat link, a channel the target reads, or any other message surface. No admin rights and no non-default settings are required on either side.
Impact
Script executes in the viewer's browser on the Open WebUI origin, which puts the session token in localStorage within reach and therefore allows taking over the viewing account. If the viewer is an administrator, that is administrator access to the instance. Exploitation needs the target to open the content, but nothing beyond that: no interaction with the message itself. Server-side data and availability are unaffected; the impact is entirely in the viewer's browser session.
Fix
Fixed in 0.11.0 by commit bc600d3f0 (PR #26718). The error path now HTML-escapes the math source before it reaches the DOM, so a failed render displays the formula as text instead of as markup. Upgrading fully resolves the issue; no configuration change is needed.
Root cause
Affected component: src/lib/components/chat/Messages/Markdown/KatexRenderer.svelte, the reactive block that renders math and its catch branch. Affected setup: releases 0.10.0 through 0.10.2, which are the versions carrying that fallback.
KaTeX was called with throwOnError: false, which suppresses parse errors but not a RangeError from deeply nested input. The surrounding catch treated any failure as "show the original formula" and assigned the untouched source to the value that the template inserts with {@html}. Because the Markdown math tokenizer captures everything between the delimiters verbatim, including angle brackets and complete tags, the attacker controls that string exactly.
Proof of concept
Send a chat message (or store one via any endpoint that writes message content) consisting of a single inline math block: an opening $, 100000 { characters, an <img src=x onerror=alert(document.domain)> tag, 100000 } characters, and a closing $.
python3 -c 'N=100000; print("$"+"{"*N+"<img src=x onerror=alert(document.domain)>"+"}"*N+"$")'Open the chat as any user who can view it. KaTeX overflows the stack, the fallback inserts the raw source, and the onerror handler fires. Replacing alert() with a request carrying localStorage.token sends the viewer's session token to an attacker-controlled host; this was demonstrated against a shared chat opened by an administrator account.
Credits
@maxntv - reported the unescaped KaTeX error fallback and demonstrated session-token theft through a shared chat.
Latest POC
1 PoC candidate from github (unverified)
Sign in to open the public PoC links collected for this CVE.
Executive ViewAI
Open WebUI 0.10.0-0.10.2 contains a stored cross-site scripting vulnerability that enables any authenticated user to steal session tokens and take over accounts of all other users-including administrators-simply by viewing a malicious message. An attacker with basic access can achieve full administrative compromise and persistent system access through normal application workflows.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
EUVD-2026-52923
GHSA-pwxh-7358-jq2x
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB