Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious Markdown with SVG onload payload
-
DeliveryShare/deliver file to victim for Notes import
-
ExploitVictim triggers 'Download PDF' rendering
-
ExecutioninnerHTML executes injected JavaScript
-
ImpactExfiltrate 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – 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)
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
Affected Packages
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
AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
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.
Primary rating from NVD.
CVSS VectorNVD
Lifecycle Timeline
6DescriptionNVD
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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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 2More in Open Webui
View allAn XSS vulnerability exists in open-webui/open-webui versions <= 0.3.8, specifically in the function that constructs the
A Stored Cross-Site Scripting (XSS) vulnerability exists in the chat file upload functionality of open-webui/open-webui
Attacker controlled files can be uploaded to arbitrary locations on the web server's filesystem by abusing a path traver
Stored cross-site scripting in Open WebUI's terminal port preview feature allows an authenticated attacker sharing a ter
In version v0.3.10 of open-webui/open-webui, the `api/v1/utils/pdf` endpoint lacks authentication mechanisms, allowing u
OAuth and SCIM identity confusion in Open WebUI 0.6.41-0.10.x (SQLite-backed deployments only) allows unauthenticated re
DNS rebinding SSRF in Open WebUI versions 0.9.6 through 0.11.0 allows authenticated users who control authoritative DNS
Denial of service in Open WebUI versions 0.9.0-0.11.0 allows unauthenticated remote attackers to stall the application s
In version 0.3.8 of open-webui, an endpoint for converting markdown to HTML is exposed without authentication. Rated hig
Open WebUI is a self-hosted artificial intelligence platform designed to operate entirely offline. [CVSS 7.3 HIGH]
Stored XSS in Open WebUI prior to version 0.7.0 allows authenticated users to inject malicious HTML payloads into chat d
Improper privilege management in Open WebUI 0.10.0 through 0.11.0 allows any authenticated low-privilege user with write
EUVD-2025-201263
GHSA-8wvc-869r-xfqf
NVD
CVE.org
EPSS
Exploit-DB