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.
Verified on main @ 8dae237a (v0.9.2):
0.1.1240.1.1250.2.00.2.10.2.20.2.30.2.40.2.50.3.00.3.1+144 more0.9.3Exploitability
AV:NAC:LPR:LUI:RScope
S:CImpact
C:HI:HA:NCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N