# CVE-2026-87995: Open WebUI: Same-origin XSS to account takeover via terminal port-preview iframe hardcoding allow-same-origin

- 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.27%, higher than 21% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-09-09T21:26:30.890Z
- Modified: 2026-10-01T17:55:55.846Z
- Also known as: GHSA-jmc6-2wr8-h3wj, PYSEC-2026-4123
- Weaknesses: CWE-79, CWE-1021
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

Open WebUI is an extensible, feature-rich, and user-friendly self-hosted AI platform. From 0.8.11 until 0.11.1, src/lib/components/chat/FileNav/PortPreview.svelte rendered terminal port content in an iframe sandbox containing both allow-scripts and allow-same-origin. Because the terminal proxy serves that content from the Open WebUI origin, an authenticated user with access to a shared terminal server could host script on a previewed port and take over a victim's account when the victim opened the preview. This issue is fixed in version 0.11.1.

(As written by CVE List.)

## Affected

- open-webui open-webui: >= 0.8.11, < 0.11.1
- open-webui (PyPI): from 0.8.11 before 0.11.1
- openwebui open_webui: from 0.8.11 before 0.11.1

## 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`
- 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-jmc6-2wr8-h3wj> (exploit, vendor-advisory, web)
- <https://github.com/open-webui/open-webui/commit/54d7a223707f03172efbb9e754db6e69709956d0> (patch, web)
- <https://github.com/open-webui/open-webui/releases/tag/v0.11.1> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-87995> (advisory)
- <https://github.com/open-webui/open-webui> (package)
- <https://pypi.org/project/open-webui> (package)
- <https://github.com/advisories/GHSA-jmc6-2wr8-h3wj> (advisory)

## Sources

- CVE List: [CVE-2026-87995](https://www.cve.org/CVERecord?id=CVE-2026-87995), CVE Terms of Use, modified 2026-09-10
- GitHub Advisory Database: [GHSA-jmc6-2wr8-h3wj](https://github.com/advisories/GHSA-jmc6-2wr8-h3wj), CC-BY-4.0, modified 2026-10-01
- NVD: [CVE-2026-87995](https://nvd.nist.gov/vuln/detail/CVE-2026-87995), Public domain, modified 2026-09-16
- PyPA Advisory Database: [PYSEC-2026-4123](https://osv.dev/vulnerability/PYSEC-2026-4123), CC-BY-4.0, modified 2026-10-01

---

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