VYPR
High severityNVD Advisory· Published Nov 8, 2025· Updated Nov 10, 2025

Open WebUI vulnerable to Stored DOM XSS via prompts when 'Insert Prompt as Rich Text' is enabled resulting in ATO/RCE

CVE-2025-64495

Description

Open WebUI is a self-hosted artificial intelligence platform designed to operate entirely offline. In versions 0.6.34 and below, the functionality that inserts custom prompts into the chat window is vulnerable to DOM XSS when 'Insert Prompt as Rich Text' is enabled, since the prompt body is assigned to the DOM sink .innerHtml without sanitisation. Any user with permissions to create prompts can abuse this to plant a payload that could be triggered by other users if they run the corresponding / command to insert the prompt. This issue is fixed in version 0.6.35.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
open-webuinpm
< 0.6.350.6.35
open-webuiPyPI
< 0.6.350.6.35

Affected products

1

Patches

1
eb9c4c0e358c

refac/fix: insert prompt as rich text

https://github.com/open-webui/open-webuiTimothy Jaeryang BaekOct 21, 2025via ghsa
1 file changed · +10 6
  • src/lib/components/common/RichTextInput.svelte+10 6 modified
    @@ -1,5 +1,7 @@
     <script lang="ts">
     	import { marked } from 'marked';
    +	import DOMPurify from 'dompurify';
    +
     	marked.use({
     		breaks: true,
     		gfm: true,
    @@ -336,12 +338,14 @@
     		let tr = state.tr;
     
     		if (insertPromptAsRichText) {
    -			const htmlContent = marked
    -				.parse(text, {
    -					breaks: true,
    -					gfm: true
    -				})
    -				.trim();
    +			const htmlContent = DOMPurify.sanitize(
    +				marked
    +					.parse(text, {
    +						breaks: true,
    +						gfm: true
    +					})
    +					.trim()
    +			);
     
     			// Create a temporary div to parse HTML
     			const tempDiv = document.createElement('div');
    

Vulnerability mechanics

Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.

References

5

News mentions

0

No linked articles in our index yet.