# CVE-2025-64496: Open WebUI Affected by an External Model Server (Direct Connections) Code Injection via SSE Events

- Severity: High 7.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/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): 7.76%, higher than 94% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-11-07T17:37:33.000Z
- Modified: 2026-07-07T17:57:04.792Z
- Also known as: GHSA-cm35-v4vp-5xvx, PYSEC-2026-1729
- Weaknesses: CWE-95, CWE-501, CWE-829, CWE-830
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

Open WebUI is a self-hosted artificial intelligence platform designed to operate entirely offline. Versions 0.6.224 and prior contain a code injection vulnerability in the Direct Connections feature that allows malicious external model servers to execute arbitrary JavaScript in victim browsers via Server-Sent Event (SSE) execute events. This leads to authentication token theft, complete account takeover, and when chained with the Functions API, enables remote code execution on the backend server. The attack requires the victim to enable Direct Connections (disabled by default) and add the attacker's malicious model URL, achievable through social engineering of the admin and subsequent users. 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 7.3 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 7.3 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N`
- NVD: CVSS:3.1 8.0 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 7.3 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N`

## References

- <https://github.com/open-webui/open-webui/security/advisories/GHSA-cm35-v4vp-5xvx> (exploit, third-party-advisory, web)
- <https://github.com/open-webui/open-webui/commit/8af6a4cf21b756a66cd58378a01c60f74c39b7ca> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-64496> (advisory)
- <https://github.com/open-webui/open-webui> (package)
- <https://pypi.org/project/open-webui> (package)
- <https://github.com/advisories/GHSA-cm35-v4vp-5xvx> (advisory)

## Sources

- CVE List: [CVE-2025-64496](https://www.cve.org/CVERecord?id=CVE-2025-64496), CVE Terms of Use, modified 2025-11-13
- GitHub Advisory Database: [GHSA-cm35-v4vp-5xvx](https://github.com/advisories/GHSA-cm35-v4vp-5xvx), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2025-64496](https://nvd.nist.gov/vuln/detail/CVE-2025-64496), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1729](https://osv.dev/vulnerability/PYSEC-2026-1729), CC-BY-4.0, modified 2026-07-07

---

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