CVE-2025-64495
JavaScript vulnerability analysis and mitigation

Overview

Open WebUI, a self-hosted artificial intelligence platform designed to operate offline, contains a high-severity vulnerability (CVE-2025-64495) in versions 0.6.34 and below. The vulnerability exists in the platform's prompt-handling functionality when the 'Insert Prompt as Rich Text' feature is enabled, where custom prompts are inserted into the chat window without proper sanitization of the prompt body when assigned to the DOM sink .innerHtml (GitHub Advisory, NVD).

Technical details

The vulnerability is classified as a DOM-based Cross-Site Scripting (XSS) with a CVSS v3.1 score of 8.7 (High). The flaw exists in the replaceCommandWithText function within src/lib/components/common/RichTextInput.svelte, where user-controlled HTML from prompt bodies is assigned to tempDiv.innerHTML without proper sanitization. While the marked.parse library is used for processing, it explicitly does not provide HTML sanitization, leaving the application vulnerable to XSS attacks (GitHub Advisory, Miggo).

Impact

The vulnerability can lead to account takeover (ATO) through session token theft, as malicious JavaScript can read and exfiltrate session tokens from localStorage. For admin accounts, the impact is more severe as it can result in remote code execution (RCE) on the host system through the platform's 'Functions' feature, which allows admins to execute arbitrary Python code (Security Online, GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in version 0.6.35 by implementing proper HTML sanitization using DOMPurify before assigning content to .innerHtml. Users are strongly advised to upgrade to this version or later. For those unable to upgrade immediately, ensuring the 'Insert Prompt as Rich Text' setting remains disabled provides an effective workaround (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-65108CRITICAL10
  • JavaScriptJavaScript
  • md-to-pdf
NoYesNov 21, 2025
CVE-2025-64767CRITICAL9.1
  • JavaScriptJavaScript
  • @hpke/core
NoYesNov 21, 2025
CVE-2025-64755HIGH8.7
  • JavaScriptJavaScript
  • @anthropic-ai/claude-code
NoYesNov 21, 2025
CVE-2025-64762HIGH8
  • JavaScriptJavaScript
  • @workos-inc/authkit-nextjs
NoYesNov 21, 2025
CVE-2025-63700HIGH7.5
  • JavaScriptJavaScript
  • @clerk/clerk-js
NoNoNov 20, 2025

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

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