# CVE-2025-46719: Open WebUI vulnerable to stored XSS via unescaped markdown token in MarkdownTokens.svelte leading to full account takeover and RCE via functions

- Severity: Medium 5.4 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N/E:P`
- 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.59%, higher than 49% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-05-05T18:50:56.928Z
- Modified: 2026-07-13T16:42:52.767Z
- Also known as: GHSA-9f4f-jv96-8766, PYSEC-2026-2716
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: GitHub_M

## Description

Open WebUI is a self-hosted artificial intelligence platform designed to operate entirely offline. Prior to version 0.6.6, a vulnerability in the way certain html tags in chat messages are rendered allows attackers to inject JavaScript code into a chat transcript. The JavaScript code will be executed in the user's browser every time that chat transcript is opened, allowing attackers to retrieve the user's access token and gain full control over their account. Chat transcripts can be shared with other users in the same server, or with the whole open-webui community if "Enable Community Sharing" is enabled in the admin panel. If this exploit is used against an admin user, it is possible to achieve Remote Code Execution on the server where the open-webui backend is hosted. This can be done by creating a new function which contains malicious python code. This vulnerability also affects chat transcripts uploaded to `https://openwebui.com/c/<user>/<chat_id>`, allowing for wormable stored XSS in https[:]//openwebui[.]com. Version 0.6.6 contains a patch for the issue.

(As written by CVE List.)

## Affected

- open-webui open-webui: < 0.6.6
- open-webui (PyPI): before 0.6.6
- openwebui open_webui: before 0.6.6

## Every score

- GitHub_M: CVSS:4.0 5.4 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N/E:P`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:L/SI:L/SA:N/E:P`
- 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:4.0 `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:L/SI:L/SA:N/E:P`

## References

- <https://github.com/open-webui/open-webui/security/advisories/GHSA-9f4f-jv96-8766> (exploit, vendor-advisory, web)
- <https://github.com/open-webui/open-webui/commit/6fd082d55ffaf6eb226efdeebc7155e3693d2d01> (patch, web)
- <https://github.com/open-webui/open-webui/blob/main/src/lib/components/chat/Messages/Markdown/MarkdownTokens.svelte#L269-L279> (product, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-46719> (advisory)
- <https://github.com/open-webui/open-webui> (package)
- <https://github.com/open-webui/open-webui/releases/tag/v0.6.6> (web)
- <https://pypi.org/project/open-webui> (package)
- <https://github.com/advisories/GHSA-9f4f-jv96-8766> (advisory)

## Sources

- CVE List: [CVE-2025-46719](https://www.cve.org/CVERecord?id=CVE-2025-46719), CVE Terms of Use, modified 2025-05-05
- GitHub Advisory Database: [GHSA-9f4f-jv96-8766](https://github.com/advisories/GHSA-9f4f-jv96-8766), CC-BY-4.0, modified 2026-07-13
- NVD: [CVE-2025-46719](https://nvd.nist.gov/vuln/detail/CVE-2025-46719), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-2716](https://osv.dev/vulnerability/PYSEC-2026-2716), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2025-46719 · Whole record: https://cve.day/CVE-2025-46719.json · Rebuilt by cve.day 2026-11-25T22:58:57.600Z
