CVE-2026-45303 Open WebUI: Stored XSS via the HTML renedering view

High 7.7 Published Updated

Attackers can inject scripts via HTML rendering view to execute code and access parent data due to weak iframe sandboxing.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2026-45303?

CVE-2026-45303 is a high-severity cross-site scripting vulnerability in Openwebui Open Webui, published on 15 May 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

Open WebUI is a self-hosted artificial intelligence platform designed to operate entirely offline. Prior to 0.6.5, through the HTML rendering view, scripts can be injected and executed. The frontend provides a function to visualize the HTML content of a current chat. The content is embedded in an iFrame with the allow-scripts allow-forms allow-same-origin sandbox directive. This means that the content is placed in a sandbox but with permission to execute scripts and access the parent’s data (e.g., local storage). As a result, only a few functions are restricted (e.g., displaying an alert box), but in effect, the sandbox attribute is largely nullified. This vulnerability is fixed in 0.6.5.

Weakness: CWE-79

Which versions are affected by CVE-2026-45303?

3 open source packages ship an affected version, including open-webui. It affects 1 product.

PackageAffectedFixed in
open-webui PyPIAll versions0.6.5
open-webui PyPIAll versions0.6.5
open-webui PyPIAll versions0.6.5

Products include Openwebui Open Webui.

How do I fix CVE-2026-45303?

Upgrade open-webui to 0.6.5 or later.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2026-45303 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-45303 exists.

All Openwebui Open Webui vulnerabilities

Sources

Also known as GHSA-4vrc-m9ch-6m3r, PYSEC-2026-2704.

Is CVE-2026-45303 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free