GitHub Advisoryadvisory · PyPI
GHSA-xc8p-9rr6-97r2 Open WebUI vulnerable to Stored XSS via iFrame in citations model
HIGH
Official page ↗
- Aliases
- CVE-2026-26192
- Ecosystem
- PyPI
- Packages
- open-webui
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N
- Weaknesses
- CWE-79
- Reviewed
- 2026-07-07
Affected packages
• PyPI open-webui: < 0.7.0 → fixed in 0.7.0
Description
Summary
Manually modifying chat history allows setting the `html` property within document metadata. This causes the frontend to enter a code path that treats document contents as HTML, and render them in an iFrame when the citation is previewed. This allows stored XSS via a weaponised document payload in a chat. The payload also executes when the citation is viewed on a shared chat.
Details
The vulnerability stems from how iFrame are implemented here:
https://github.com/open-webui/open-webui/blob/6f1486ffd0cb288d0e21f41845361924e0d742b3/src/lib/components/chat/Messages/Citations/CitationModal.svelte#L163-L170
The `html` attribute can be controlled by a user who manually edits the chat history. Since `allow-scripts` and `allow-same-origin` are harcoded here the sandboxing offers essentially no protection.
PoC
Create an arbitrary chat with a file upload attached:
Edit the response
Before saving, configure the browser to use an HTTP proxy tool (Burp/Caido/ZAP) and intercept the save request. Find the object within the `history` and then `messages` objects (not the `messages` array) that contains the document source.
Add `html: true` to metadata, update the document to an XSS payload, and forward the request.
Observe the payload is rendered in the iFrame and the javascript executes.
The payload also executes when viewed from a shared version of the chat.
Impact
Any user can create a weaponised chat that can be shared and subsequently used to target other users.
Low privilege users are at risk of having their session taken over by a payload that reads their token from local storage and exfiltrates it to an attacker controlled server.
Admins are at risk of exposing the server to RCE via same chain described in https://github.com/advisories/GHSA-w7xj-8fx7-wfch.
Caveats
The victim must expand the sources and click the document containing the payload to trigger this issue.
Related
Alias · CVE (1)
- CVE-2026-26192 Open WebUI is a self-hosted artificial intelligence platform designed to operate entirely offline. vulnerability
Weakness · CWE (1)
- CWE-79 Improper Neutralization of Input During Web Page Generation weakness
References
- https://github.com/open-webui/open-webui/security/advisories/GHSA-xc8p-9rr6-97r2 web
- https://nvd.nist.gov/vuln/detail/CVE-2026-26192 advisory
- https://github.com/open-webui/open-webui package
- https://github.com/open-webui/open-webui/blob/6f1486ffd0cb288d0e21f41845361924e0d742b3/src/lib/components/chat/Messages/Citations/CitationModal.svelte#L163-L170 web