# CVE-2025-64495: Open WebUI vulnerable to Stored DOM XSS via prompts when 'Insert Prompt as Rich Text' is enabled resulting in ATO/RCE

- Severity: High 8.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.51%, higher than 44% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-11-07T15:25:23.000Z
- Modified: 2026-07-07T17:56:10.834Z
- Also known as: GHSA-w7xj-8fx7-wfch, PYSEC-2026-1741
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- open-webui open-webui: < 0.6.35
- open-webui (npm): before 0.6.35
- open-webui (PyPI): before 0.6.35
- openwebui open_webui: before 0.6.35

## Every score

- GitHub_M: CVSS:3.1 8.7 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N`
- GitHub: CVSS:3.1 8.7 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- PyPA Advisory Database: CVSS:3.1 8.7 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N`

## References

- <https://github.com/open-webui/open-webui/security/advisories/GHSA-w7xj-8fx7-wfch> (exploit, third-party-advisory, web)
- <https://github.com/open-webui/open-webui/commit/eb9c4c0e358c274aea35f21c2856c0a20051e5f1> (patch, web)
- <https://github.com/open-webui/open-webui/blob/7a83e7dfa367d19f762ec17cac5e4a94ea2bd97d/src/lib/components/common/RichTextInput.svelte#L348> (product, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-64495> (advisory)
- <https://github.com/open-webui/open-webui> (package)
- <https://pypi.org/project/open-webui> (package)
- <https://github.com/advisories/GHSA-w7xj-8fx7-wfch> (advisory)

## Sources

- CVE List: [CVE-2025-64495](https://www.cve.org/CVERecord?id=CVE-2025-64495), CVE Terms of Use, modified 2025-11-10
- GitHub Advisory Database: [GHSA-w7xj-8fx7-wfch](https://github.com/advisories/GHSA-w7xj-8fx7-wfch), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2025-64495](https://nvd.nist.gov/vuln/detail/CVE-2025-64495), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1741](https://osv.dev/vulnerability/PYSEC-2026-1741), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2025-64495 · Whole record: https://cve.day/CVE-2025-64495.json · Rebuilt by cve.day 2026-11-25T22:59:07.368Z
