All vulnerabilities

Servers and applications

CVE-2026-87995

Same-origin XSS to account takeover via terminal port-preview iframe hardcoding allow-same-origin

Severity
High 8.7
Published
31 Aug 2026
Last changed
16 Sept 2026
Added to UpHeron
1 Nov 2026
Fixed in
0.11.1
Exploit chance
0.4% in the next 30 daysHigher than 36% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Cross-site scripting (CWE-79)Clickjacking (CWE-1021)
Attack
Over the network · Needs a user account · Needs someone to click or open something
Attacker can
Read data · Change data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
Also known as
GHSA-jmc6-2wr8-h3wj
Sources
NVD, Project advisories (GitHub)

Description

Any authenticated user with access to a shared terminal server could get script of their choosing to run in the Open WebUI origin itself. The in-app port preview rendered the content of a previewed port in an iframe whose sandbox always granted allow-same-origin alongside allow-scripts, and that content is served from a path on the application's own origin, so the sandbox provided no isolation at all. Script served on a previewed port could read the victim's session token and take over the account.

  • At least one terminal server configured by an admin (TERMINAL_SERVER_CONNECTIONS, empty by default) and reachable by both the attacker and the victim. Deployments with no terminal server configured are not affected.
  • The attacker needs a normal authenticated account with access to that terminal connection, no admin rights, plus the ability to start a process listening on a port there.
  • Personal terminals a user configures for themselves are not affected.
From open-webui/open-webui's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
Open WebUIServers and applications · cpe:a:openwebui:open_webui
  • From 0.8.11 before 0.11.1
Open WebUIServers and applications · github:open-webui/open-webui
  • From 0.8.11 before 0.11.1

About Open WebUI

self-hosted user interface for artificial intelligence models

From Wikidata, CC0 1.0.
Weekly downloads (PyPI)
355,496PyPI Stats, 15 Nov 2026
Docker Hub pulls
990,663Docker Hub, 15 Nov 2026
GitHub stars
158,684GitHub, 15 Nov 2026
Forks
23,075GitHub, 15 Nov 2026
Latest release
v0.13.3GitHub, 15 Nov 2026
Released
8 Nov 2026GitHub
License
multi-licensingWikidata
First published on GitHub
6 Oct 2023GitHub

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2026-87995
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-87995
  • GitHub Advisory Database https://github.com/advisories/GHSA-jmc6-2wr8-h3wj
  • github.com https://github.com/open-webui/open-webui/security/advisories/GHSA-jmc6-2wr8-h3wj