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)
- Identifiers
- CVE-2026-59224GHSA-j657-m4c4-24jq
- Published
- Record updated
- 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.
Affected packages in the Exposure Registry
Matched by package name and ecosystem. Each entry shows whether the package delegates to a language model and how many tracked packages depend on it.
- open-webuiPyPILLM dependency since 2024-05-20
Related items
- MediumCVE-2026-143967: Wise Chat with AI unauthenticated stored cross-site scriptingSimilar attack, NVD/CVE Database
- MediumCVE-2026-135917: Apache Camel A2A component confused deputy via shared message headersSimilar attack, NVD/CVE Database
- MediumCVE-2026-107489: Improper Authentication vulnerability in Apache Camel A2A component. This issue affects Apache Camel: from 4.21.0…Similar attack, NVD/CVE Database
- MediumNSA urges immediate post-quantum shift after AI labs report cryptography breakthroughsSimilar attack, CSO Online
- LowPerplexity caught an AI attacker casing its cloudSimilar attack, CSO Online