mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-15 21:19:39 -05:00
[PR #24447] [CLOSED] refac(audio,cache): allowlist audio extensions and harden cache file … #82537
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/24447
Author: @Classic298
Created: 5/8/2026
Status: ❌ Closed
Base:
dev← Head:fix/audio-upload-and-cache-hardening📝 Commits (1)
8d95dfcrefac(audio,cache): allowlist audio extensions and harden cache file serving📊 Changes
2 files changed (+17 additions, -2 deletions)
View changed files
📝
backend/open_webui/main.py(+9 -1)📝
backend/open_webui/routers/audio.py(+8 -1)📄 Description
…serving
Audio transcription upload: validate file extension against a strict allowlist of known audio formats before persisting to disk. Rejects non-audio extensions with HTTP 400.
Cache route: add X-Content-Type-Options: nosniff to all responses. Force Content-Disposition: attachment for file types outside image/audio/video to prevent inline rendering of potentially dangerous content.
Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.