Skip to content
HighVulnerability

GHSA-j657-m4c4-24jq: Open WebUI: Terminal proxy forwards a spoofable, integrity-unbound user identity to the upstream (X-User-Id header and ws_terminal session_id query injection)

Published
Record updated
View JSON
Affected
  • open-webui < 0.10.0
Fixed in
0.10.0
  • released June 29, 2026, 25 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.3%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .

Summary

The terminal proxy in backend/open_webui/routers/terminals.py forwards the Open WebUI user's identity to the upstream terminal server as an authorization claim with no cryptographic binding. On the HTTP path (proxy_terminal), X-User-Id is sent unsigned and can be spoofed by anyone who can reach the upstream directly. On the WebSocket path (ws_terminal), the unvalidated, unencoded session_id is interpolated into the upstream URL, letting an authenticated user inject a different user_id and attach to another user's live PTY where the backend scopes terminals by user_id.

Mitigation

Validate and URL-encode session_id before building the upstream URL (urllib.parse.quote(session_id, safe=""); reject ?, #, &, /, %, backslash and control characters), and build the query string with a URL builder. Bind the forwarded identity by emitting a short-lived signed claim (for example HS256 over {uid, iat, aud:server_id} with a key shared only with the specific upstream) and verifying it upstream.