GHSA-xc8p-9rr6-97r2: Open WebUI vulnerable to Stored XSS via iFrame in citations model
Open WebUI versions prior to 0.7.0 are vulnerable to a stored cross-site scripting (XSS) attack via the iFrame in the citations model. This occurs because users can manually modify chat history to set the 'html' property in document metadata, causing the frontend to render untrusted HTML content inside an iFrame with insufficient sandboxing. The vulnerability allows execution of arbitrary JavaScript when the citation is previewed or viewed in a shared chat. Exploitation requires the victim to expand the sources and click the malicious document. This can lead to session token theft for low-privilege users and potential remote code execution (RCE) risks for admins when combined with another vulnerability. No official patch or fix is currently documented.
AI Analysis
Technical Summary
The vulnerability in Open WebUI (<0.7.0) arises from the ability of users to manually edit chat history and set the 'html' property within document metadata. This causes the frontend to treat document contents as HTML and render them inside an iFrame with 'allow-scripts' and 'allow-same-origin' permissions, effectively disabling sandbox protections. As a result, stored XSS payloads embedded in chat documents execute JavaScript when the citation is previewed or viewed in shared chats. The attack vector requires user interaction to expand and click the malicious document. The impact includes session token theft for regular users and potential server-side RCE exposure for admins when chained with a related vulnerability (GHSA-w7xj-8fx7-wfch).
Potential Impact
An attacker with the ability to modify chat history can create weaponized chats containing malicious HTML payloads that execute JavaScript in the context of other users viewing the citation. This can lead to theft of session tokens from local storage, enabling account takeover for low-privilege users. Additionally, administrators are at risk of remote code execution on the server if this vulnerability is chained with a known related vulnerability. The attack requires victim interaction (expanding and clicking the malicious document) to trigger the payload.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should avoid manually modifying chat history to include untrusted HTML content. Users should exercise caution when expanding and clicking documents in shared chats. Monitoring for updates from the Open WebUI project is recommended to apply any forthcoming patches addressing this issue.
GHSA-xc8p-9rr6-97r2: Open WebUI vulnerable to Stored XSS via iFrame in citations model
Description
Open WebUI versions prior to 0.7.0 are vulnerable to a stored cross-site scripting (XSS) attack via the iFrame in the citations model. This occurs because users can manually modify chat history to set the 'html' property in document metadata, causing the frontend to render untrusted HTML content inside an iFrame with insufficient sandboxing. The vulnerability allows execution of arbitrary JavaScript when the citation is previewed or viewed in a shared chat. Exploitation requires the victim to expand the sources and click the malicious document. This can lead to session token theft for low-privilege users and potential remote code execution (RCE) risks for admins when combined with another vulnerability. No official patch or fix is currently documented.
CVSS v3.1
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in Open WebUI (<0.7.0) arises from the ability of users to manually edit chat history and set the 'html' property within document metadata. This causes the frontend to treat document contents as HTML and render them inside an iFrame with 'allow-scripts' and 'allow-same-origin' permissions, effectively disabling sandbox protections. As a result, stored XSS payloads embedded in chat documents execute JavaScript when the citation is previewed or viewed in shared chats. The attack vector requires user interaction to expand and click the malicious document. The impact includes session token theft for regular users and potential server-side RCE exposure for admins when chained with a related vulnerability (GHSA-w7xj-8fx7-wfch).
Potential Impact
An attacker with the ability to modify chat history can create weaponized chats containing malicious HTML payloads that execute JavaScript in the context of other users viewing the citation. This can lead to theft of session tokens from local storage, enabling account takeover for low-privilege users. Additionally, administrators are at risk of remote code execution on the server if this vulnerability is chained with a known related vulnerability. The attack requires victim interaction (expanding and clicking the malicious document) to trigger the payload.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should avoid manually modifying chat history to include untrusted HTML content. Users should exercise caution when expanding and clicking documents in shared chats. Monitoring for updates from the Open WebUI project is recommended to apply any forthcoming patches addressing this issue.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-xc8p-9rr6-97r2
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-26192"]
- Ecosystems
- ["PyPI"]
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
Threat ID: 6a4e4f07c9d9e3dbe328de37
Added to database: 07/08/2026, 13:22:15 UTC
Last enriched: 07/08/2026, 13:50:46 UTC
Last updated: 07/08/2026, 14:22:51 UTC
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.