Alta

Open WebUI: Cross-origin postMessage confirmation bypass via action:submit

  • Publicada: 17.06.2026
  • Actualizado: 11.10.2026 14:18

Summary

The chat message listener allows non-same-origin input:prompt and action:submit messages, so an external site can set prompt text and trigger submitPrompt() in an authenticated victim session. I validated this with a cross-origin attacker page that auto-posted messages and caused unauthorized POST /api/v1/chats/new and POST /api/chat/completions requests containing attacker-controlled prompts. This enables cross-site forced actions and model/tool execution under victim privileges without consent.

Details

The chat page's window message listener in src/lib/components/chat/Chat.svelte processes message types including input:prompt and action:submit without adequately enforcing same-origin restrictions. Based on code around lines ~597-616, input text is set directly from event.data.text; action:submit proceeds to submitPrompt() on the current prompt. The logic does not apply a strict origin allowlist and permits non-same-origin control of the chat input and submission flow, leading to cross-origin command execution in the victim's authenticated UI context. As a result, backend API calls (e.g., POST /api/v1/chats/new, POST /api/chat/completions) are sent under victim credentials.

Normally, via the input:prompt:submit postMessage type, this results in a "Confirm Prompt from Embed" confirmation dialog:

https://github.com/open-webui/open-webui/blob/9bd84258d09eefe7bf975878fb0e31a5dadfe0f8/src/lib/components/chat/Chat.svelte#L604-L622

However, combining the two other types, it is possible to achieve the same effect without this confirmation:

https://github.com/open-webui/open-webui/blob/9bd84258d09eefe7bf975878fb0e31a5dadfe0f8/src/lib/components/chat/Chat.svelte#L584-L602

PoC

  1. Set up a local Open WebUI instance and log in to it, making sure a model is configured
  2. Host the following HTML anywhere and visit it (optionally change http://127.0.0.1:14000 to your instance Base URL):
html
<h1>Click anywhere</h1>
<script>
  function sleep(ms) {
    return new Promise(r => setTimeout(r, ms));
  }
  
  onclick = async () => {
    w = window.open('http://127.0.0.1:14000');
    await sleep(2000);
    w.postMessage({ type: 'input:prompt', text: "INJECTED PROMPT" }, '*');
    await sleep(500);
    w.postMessage({ type: 'action:submit' }, '*');
  }
</script>
  1. Click anywhere on the page, then notice without further interaction the "INJECTED PROMPT" is executed on the Open WebUI instance
<img width="874" height="264" alt="image" src="https://github.com/user-attachments/assets/244d9015-0dbf-47e0-a30e-1c2fbbde5e58" />

Impact

Conditions required: The victim must be authenticated to Open WebUI in the browser (token cookie present).

This issue enables cross-site forced actions under the victim's identity. An attacker can silently inject prompts and trigger model/tool execution (e.g., code interpreter, web search, retrieval, terminal/tool servers) as the victim without confirmation.

Original Agent Report

<img width="400" alt="app aikido dev_ai-pentests_projects_116389_assessments_019d67d4-81c8-7dd2-bb9e-0a4a774b2c78_issues_sidebarIssue=20439940 (4)" src="https://github.com/user-attachments/assets/7b6521ed-d08b-446d-a918-103523d08a1e" />

Software afectado

Haz clic en una tecnología para ver todas sus vulnerabilidades.

PlataformaPaqueteVersiones vulnerablesCorregida en
Python (PyPI) open-webui < 0.9.6 0.9.6

Referencias

Puntuación CVSS 6.5/10
Vector CVSS
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
Debilidad (CWE)
CWE-346
Plataforma
Python (PyPI)
Paquete
open-webui
Publicada
17.06.2026
Actualizado
11.10.2026 14:18

Fuentes y licencias

OSV / GitHub Advisory Database - PYSEC-2026-2695 - PyPA Advisory Database; CC BY 4.0

OSV / GitHub Advisory Database - GHSA-3vv5-8xxp-4f55 - CC BY 4.0

Historial de vulnerabilidades: open-webui

Todas las vulnerabilidades publicadas de este paquete (Python (PyPI)), de la más reciente a la más antigua. Muestra si es un fallo aislado o un paquete que hay que vigilar.

Todas (161) en el archivo
Entradas en total
161
Primera → última
08.2024 09.2026
Sin corrección
11
Explotada en ataques
0

Distribución por gravedad

  • Crítica 1
  • Alta 77
  • Media 75
  • Baja 8

Divulgaciones por año

  1. 2024: 3
  2. 2025: 21
  3. 2026: 137
Gravedad:
  1. Alta · 7.7 CVE-2026-59221 >= 0.9.6, < 0.10.0 0.10.0
  2. Alta · 7.3 CVE-2026-59214 < 0.10.0 0.10.0
  3. Alta · 8.7 CVE-2026-54011 < 0.9.6 0.9.6
  4. Open WebUI: Cross-origin postMessage confirmation bypass via action:submit esta entrada
    Alta · 6.5 CVE-2026-54007 < 0.9.6 0.9.6
  5. Alta · 7.1 CVE-2026-45349 < 0.9.0 0.9.0
  6. Alta · 7.7 CVE-2026-45303 < 0.6.5 0.6.5
  7. Alta · 7.1 CVE-2026-44569 < 0.6.19 0.6.19
  8. Alta · 8.1 CVE-2026-44565 < 0.6.10 0.6.10
  9. Alta · 7.3 CVE-2026-44566 < 0.1.124 0.1.124
  10. Alta · 7.3 CVE-2026-44567 < 0.1.124 0.1.124
  11. Alta · 7.3 CVE-2026-44549 < 0.8.0 0.8.0
  12. Crítica · 9.1 CVE-2026-44551 < 0.9.0 0.9.0
  13. Alta · 7.3 CVE-2026-44721 < 0.9.0 0.9.0
  14. Alta · 7.7 CVE-2026-34222 < 0.8.11 0.8.11
  15. Alta · 7.5 ghsa-5ccf-884p-4jjq <= 0.3.21 sin corrección
  16. Alta · 8.4 CVE-2024-7990 <= 0.3.8 sin corrección
  17. Alta · 8.0 CVE-2024-7806 < 0.3.33 0.3.33
  18. Alta · 7.6 CVE-2024-7053 <= 0.3.8 sin corrección
  19. Alta · 8.1 CVE-2024-7043 < 0.3.16 0.3.16
  20. Alta · 7.5 CVE-2024-7036 <= 0.3.8 sin corrección
  21. Alta · 7.5 ghsa-w466-2wfc-8g58 <= 0.3.32 sin corrección
  22. Alta · 7.5 CVE-2024-12534 <= 0.3.32 sin corrección
  23. Alta · 7.5 CVE-2024-12537 <= 0.3.32 sin corrección

Identifica las vulnerabilidades de tu aplicación

Con la integración de DockRay y el inventario de software activado, DockRay compara las versiones notificadas de los componentes con las vulnerabilidades conocidas y avisa de las coincidencias confirmadas. La cobertura depende de la tecnología compatible y de los avisos disponibles.

Conectar tu aplicación
Newsletter DockRay

La seguridad de tus aplicaciones en tu correo

Vulnerabilidades importantes, recomendaciones concretas y consejos prácticos para tus aplicaciones. Elige tus tecnologías y sigue lo que importa para tu proyecto.

  • Un resumen diario de nuevas vulnerabilidades, también las críticas.
  • Avisos sobre actualizaciones importantes.
  • Consejos prácticos sobre seguridad y monitorización de aplicaciones.

Déjalo vacío para recibir avisos de todas las tecnologías.

Suscripción gratuita. Date de baja con un clic en cualquier correo.