mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-09 10:50:35 -06:00
[PR #24520] [CLOSED] fix: sandbox terminal proxy responses to prevent cross-user XSS via uploaded HTML #98741
Reference in New Issue
Block a user
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/24520
Author: @Classic298
Created: 5/9/2026
Status: ❌ Closed
Base:
dev← Head:fix/terminal-proxy-xss-sandbox-headers📝 Commits (1)
95122d7fix: sandbox terminal proxy responses to prevent cross-user XSS via uploaded HTML📊 Changes
1 file changed (+11 additions, -0 deletions)
View changed files
📝
backend/open_webui/routers/terminals.py(+11 -0)📄 Description
Terminal proxy at /api/v1/terminals/{server_id}/{path:path} forwarded the upstream Content-Type verbatim with no Content-Security-Policy or X-Content-Type-Options. A terminal-trusted user could host an HTML file on a port reachable through the proxy; another user with access to the same terminal server who opened the proxy URL would render that HTML under open-webui's same origin and a
<script>payload could readlocalStorage.tokenfor full session theft → ATO.Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.