CVE-2026-45315

Open WebUI: Stored XSS via attacker-controlled file extension in /api/v1/audio/transcriptions

Published May 15, 2026 CVSS 3.1 · 8.7 High EPSS < 1% KEV · Not listed
Description
Open WebUI is a self-hosted artificial intelligence platform designed to operate entirely offline. Prior to 0.9.3, the audio transcription upload endpoint takes the file extension from the user-supplied filename and saves the file under CACHE_DIR/audio/transcriptions/.. 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. This vulnerability is fixed in 0.9.3.

Analysis

AI-generated

Technical impact

The vulnerability allows a malicious user to store a script in an audio transcription upload by giving the file a polyglot name that looks like a WAV file but contains HTML. When another user opens the resulting URL, the server serves the file with a Content‑Type of text/html and no Content‑Disposition, causing the browser to execute the script in the context of the Open WebUI origin. This can lead to cookie theft, credential compromise, or other client‑side attacks.

Affected Systems

Open WebUI versions earlier than 0.9.3. Users with verified chat.stt permission can upload the file; any other user can be tricked into visiting the URL.

Risk and Exploitability

The CVSS score of 8.7 categorises it as high severity. EPSS is unavailable, and it is not listed in the CISA KEV catalogue. The attack requires a verified user with upload privileges and a second target who follows a crafted link; the vector is likely a social‑engineering or phishing scenario involving the upload endpoint.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to Open WebUI 0.9.3 or later, where the vulnerability is fixed.
  • If an upgrade is not immediately possible, restrict audio file uploads to highly trusted users and enforce strict server‑side validation of the file extension and MIME type.
  • Configure the file serving route to add a Content-Disposition header and serve only trusted file types, or relocate uploaded files outside of a publicly accessible cache path.
  • Implement sanitisation or CSP policies to mitigate potential XSS if the issue could be exploited in future versions or similar uploads.

Generated by OpenCVE AI on May 15, 2026 at 23:54 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-m8f9-9whg-f4xr Open WebUI has stored XSS via attacker-controlled file extension in /api/v1/audio/transcriptions
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Openwebui
Openwebui open Webui
CPEs cpe:2.3:a:openwebui:open_webui:*:*:*:*:*:*:*:*
Vendors & Products Openwebui
Openwebui open Webui
Type Values Removed Values Added
First Time appeared Open-webui
Open-webui open-webui
Vendors & Products Open-webui
Open-webui open-webui
Type Values Removed Values Added
Description Open WebUI is a self-hosted artificial intelligence platform designed to operate entirely offline. Prior to 0.9.3, the audio transcription upload endpoint takes the file extension from the user-supplied filename and saves the file under CACHE_DIR/audio/transcriptions/.. 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. This vulnerability is fixed in 0.9.3.
Title Open WebUI: Stored XSS via attacker-controlled file extension in /api/v1/audio/transcriptions
Weaknesses CWE-434
CWE-646
CWE-79
References
Metrics cvssV3_1

{'score': 8.7, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N'}

Weaknesses
  • CWE-434

    Unrestricted Upload of File with Dangerous Type

  • CWE-646

    Reliance on File Name or Extension of Externally-Supplied File

  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
May 19, 2026, 5:19 PM
Reserved
May 11, 2026, 8:50 PM
Status
Modified
Published
May 15, 2026, 10:16 PM
Modified
Nov 11, 2026, 8:10 PM