Skip to content
Open WebUIGHSA-pwxh-7358-jq2x

Open WebUI: Stored XSS via unescaped KaTeX render-error fallback in rendered messages

High8.7CVE-2026-70492 · Published Aug 4, 2026 · updated Aug 10, 2026

## 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 a...

GitHub advisory

Affected versions

PackageAffectedFixed in
open-webui
PyPI
>= 0.10.0, < 0.11.00.11.0
Details and references

## 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 ` CVE-2026-70492: Open WebUI high vulnerability | Advisories

, 100000 `{` characters, an `<img src=x onerror=alert(document.domain)>` tag, 100000 `}` characters, and a closing ` CVE-2026-70492: Open WebUI high vulnerability | Advisories
. ``` python3 -c 'N=100000; print("quot;+"{"*N+"<img src=x onerror=alert(document.domain)>"+"}"*N+"quot;)' ``` 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.

CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
Severity from
GitHub (reviewed advisory)
Weakness
CWE-79
Also known as
CVE-2026-70492, PYSEC-2026-3650

More Open WebUI advisories

All Open WebUI

Critical advisories by email

Wednesdays: the week’s critical and high advisories in the AI and data stack, with the fixed versions. Only in weeks that have some.

Double opt-in. Unsubscribe any time.

CVE-2026-70492: Open WebUI high vulnerability | Advisories
Skip to content
Open WebUIGHSA-pwxh-7358-jq2x

Open WebUI: Stored XSS via unescaped KaTeX render-error fallback in rendered messages

High8.7CVE-2026-70492 · Published Aug 4, 2026 · updated Aug 10, 2026

## 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 a...

GitHub advisory

Affected versions

PackageAffectedFixed in
open-webui
PyPI
>= 0.10.0, < 0.11.00.11.0
Details and references

## 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 ` CVE-2026-70492: Open WebUI high vulnerability | Advisories

, 100000 `{` characters, an `<img src=x onerror=alert(document.domain)>` tag, 100000 `}` characters, and a closing ` CVE-2026-70492: Open WebUI high vulnerability | Advisories
. ``` python3 -c 'N=100000; print("quot;+"{"*N+"<img src=x onerror=alert(document.domain)>"+"}"*N+"quot;)' ``` 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.

CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
Severity from
GitHub (reviewed advisory)
Weakness
CWE-79
Also known as
CVE-2026-70492, PYSEC-2026-3650

More Open WebUI advisories

All Open WebUI

Critical advisories by email

Wednesdays: the week’s critical and high advisories in the AI and data stack, with the fixed versions. Only in weeks that have some.

Double opt-in. Unsubscribe any time.

, 100000 `{` characters, an `\u003cimg src=x onerror=alert(document.domain)>` tag, 100000 `}` characters, and a closing ` CVE-2026-70492: Open WebUI high vulnerability | Advisories
Skip to content
Open WebUIGHSA-pwxh-7358-jq2x

Open WebUI: Stored XSS via unescaped KaTeX render-error fallback in rendered messages

High8.7CVE-2026-70492 · Published Aug 4, 2026 · updated Aug 10, 2026

## 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 a...

GitHub advisory

Affected versions

PackageAffectedFixed in
open-webui
PyPI
>= 0.10.0, < 0.11.00.11.0
Details and references

## 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 ` CVE-2026-70492: Open WebUI high vulnerability | Advisories

, 100000 `{` characters, an `<img src=x onerror=alert(document.domain)>` tag, 100000 `}` characters, and a closing ` CVE-2026-70492: Open WebUI high vulnerability | Advisories
. ``` python3 -c 'N=100000; print("quot;+"{"*N+"<img src=x onerror=alert(document.domain)>"+"}"*N+"quot;)' ``` 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.

CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
Severity from
GitHub (reviewed advisory)
Weakness
CWE-79
Also known as
CVE-2026-70492, PYSEC-2026-3650

More Open WebUI advisories

All Open WebUI

Critical advisories by email

Wednesdays: the week’s critical and high advisories in the AI and data stack, with the fixed versions. Only in weeks that have some.

Double opt-in. Unsubscribe any time.

.\n\n```\npython3 -c 'N=100000; print(\"$\"+\"{\"*N+\"\u003cimg src=x onerror=alert(document.domain)>\"+\"}\"*N+\"$\")'\n```\n\nOpen 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.\n\n## Credits\n@maxntv , reported the unescaped KaTeX error fallback and demonstrated session-token theft through a shared chat.","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N","cvssVersion":"3.1","severitySource":"github","cwes":["CWE-79"],"refs":["https://github.com/open-webui/open-webui/security/advisories/GHSA-pwxh-7358-jq2x","https://github.com/open-webui/open-webui/pull/26718","https://github.com/open-webui/open-webui/commit/bc600d3f085802c45aa8f38c30e6e8c986bde6cc","https://github.com/open-webui/open-webui","https://github.com/open-webui/open-webui/releases/tag/v0.11.0"],"affected":[{"product":"open-webui","ecosystem":"PyPI","package":"open-webui","introduced":"0.10.0","fixed":"0.11.0","lastAffected":""}],"changes":[]},"related":[{"id":"GHSA-3cg5-48j3-v4gv","cve":"CVE-2026-70494","aliases":["CVE-2026-70494","PYSEC-2026-3638"],"summary":"Open WebUI: A folder write-collaborator can permanently delete the owner's chats by deleting a shared subfolder","title":"Open WebUI: missing authorization","severity":"high","score":8.1,"product":"open-webui","productLabel":"","products":["open-webui"],"fixed":"0.11.0","fixFirst":"0.11.0","fixedN":1,"published":"2026-08-04","modified":"2026-08-10","withdrawn":"","url":"https://github.com/advisories/GHSA-3cg5-48j3-v4gv","foundAt":"2026-09-24 23:00:22"},{"id":"GHSA-2f54-p244-32q6","cve":"CVE-2026-70493","aliases":["CVE-2026-70493","PYSEC-2026-3637"],"summary":"Open WebUI: Any authenticated user can stall a worker via a knowledge-search pattern that backtracks catastrophically","title":"Open WebUI: regular expression denial of service","severity":"medium","score":6.5,"product":"open-webui","productLabel":"","products":["open-webui"],"fixed":"0.11.0","fixFirst":"0.11.0","fixedN":1,"published":"2026-08-04","modified":"2026-08-10","withdrawn":"","url":"https://github.com/advisories/GHSA-2f54-p244-32q6","foundAt":"2026-09-24 23:00:22"},{"id":"GHSA-3r7g-q6cg-q2vx","cve":"CVE-2026-70491","aliases":["CVE-2026-70491","PYSEC-2026-3639"],"summary":"Open WebUI: Tool source code disclosed to read-only users via the tool list and get endpoints","title":"Open WebUI: Tool source code disclosed to read-only users via the tool list and get endpoints","severity":"medium","score":6.5,"product":"open-webui","productLabel":"","products":["open-webui"],"fixed":"0.11.0","fixFirst":"0.11.0","fixedN":1,"published":"2026-08-04","modified":"2026-08-10","withdrawn":"","url":"https://github.com/advisories/GHSA-3r7g-q6cg-q2vx","foundAt":"2026-09-24 23:00:22"},{"id":"GHSA-5gpj-vj23-vhhv","cve":"CVE-2026-70490","aliases":["CVE-2026-70490","PYSEC-2026-3642"],"summary":"Open WebUI: Unapproved accounts can open terminal sessions via a WebSocket auth path missing the role check","title":"Open WebUI: Unapproved accounts can open terminal sessions via a WebSocket auth path missing the role check","severity":"medium","score":6.3,"product":"open-webui","productLabel":"","products":["open-webui"],"fixed":"0.11.0","fixFirst":"0.11.0","fixedN":1,"published":"2026-08-04","modified":"2026-08-10","withdrawn":"","url":"https://github.com/advisories/GHSA-5gpj-vj23-vhhv","foundAt":"2026-09-24 23:00:22"},{"id":"GHSA-73cq-mcgh-379c","cve":"CVE-2026-70489","aliases":["CVE-2026-70489","PYSEC-2026-3644"],"summary":"Open WebUI: Instance-wide stall via automation recurrence rules that force multi-second parsing","title":"Open WebUI: Instance-wide stall via automation recurrence rules that force multi-second parsing","severity":"medium","score":6.5,"product":"open-webui","productLabel":"","products":["open-webui"],"fixed":"0.11.0","fixFirst":"0.11.0","fixedN":1,"published":"2026-08-04","modified":"2026-08-19","withdrawn":"","url":"https://github.com/advisories/GHSA-73cq-mcgh-379c","foundAt":"2026-09-24 23:00:22"},{"id":"GHSA-h6x2-583h-x99r","cve":"CVE-2026-54020","aliases":["CVE-2026-54020","PYSEC-2026-3647"],"summary":"Open WebUI: DNS Rebinding SSRF Bypass","title":"Open WebUI: DNS Rebinding SSRF Bypass","severity":"medium","score":6.3,"product":"open-webui","productLabel":"","products":["open-webui"],"fixed":"0.11.0","fixFirst":"0.11.0","fixedN":1,"published":"2026-08-04","modified":"2026-08-10","withdrawn":"","url":"https://github.com/advisories/GHSA-h6x2-583h-x99r","foundAt":"2026-09-24 23:00:22"}]}}