VYPR
High severityNVD Advisory· Published Dec 4, 2025· Updated Dec 5, 2025

Open WebUI vulnerable to Stored DOM XSS via Note 'Download PDF'

CVE-2025-65959

Description

Open WebUI is a self-hosted artificial intelligence platform designed to operate entirely offline. Prior to 0.6.37, a Stored XSS vulnerability was discovered in Open-WebUI's Notes PDF download functionality. An attacker can import a Markdown file containing malicious SVG tags into Notes, allowing them to execute arbitrary JavaScript code and steal session tokens when a victim downloads the note as PDF. This vulnerability can be exploited by any authenticated user, and unauthenticated external attackers can steal session tokens from users (both admin and regular users) by sharing specially crafted markdown files. This vulnerability is fixed in 0.6.37.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
open-webuinpm
< 0.6.370.6.37

Affected products

1

Patches

1
03cc6ce8eb5c

refac/sec: sanitize note pdf download

https://github.com/open-webui/open-webuiTimothy Jaeryang BaekNov 17, 2025via ghsa
1 file changed · +3 1
  • src/lib/components/notes/utils.ts+3 1 modified
    @@ -1,3 +1,5 @@
    +import DOMPurify from 'dompurify';
    +
     export const downloadPdf = async (note) => {
     	const [{ default: jsPDF }, { default: html2canvas }] = await Promise.all([
     		import('jspdf'),
    @@ -9,7 +11,7 @@ export const downloadPdf = async (note) => {
     	const virtualHeight = 1400; // Fixed height (adjust as needed)
     
     	// STEP 1. Get a DOM node to render
    -	const html = note.data?.content?.html ?? '';
    +	const html = DOMPurify.sanitize(note.data?.content?.html ?? '');
     	const isDarkMode = document.documentElement.classList.contains('dark');
     
     	let node;
    

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

4

News mentions

0

No linked articles in our index yet.