Description
Open WebUI is an extensible, feature-rich, and user-friendly self-hosted AI platform. Prior to 0.10.0, backend/open_webui/routers/terminals.py built the ws_terminal upstream URL from an unencoded session_id and appended user_id as a query parameter, allowing query injection to make the terminal backend resolve another user identity; the HTTP proxy path also forwarded X-User-Id as an integrity-unbound identity claim. This issue is fixed in version 0.10.0.
Published: 2026-07-09
Score: 8 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Open WebUI’s terminal proxy allows a malicious user to craft a query string that injects an unencoded session_id and supplies a user_id, causing the backend to resolve a different user identity. Additionally, the proxy forwards the X‑User‑Id header without validation, making the identity claim integrity‑unbound. These weaknesses allow an attacker to impersonate another user and obtain terminal access to that user’s environment.

Affected Systems

Open WebUI installations using any legacy version before 0.10.0 are affected. The flaw is located in the backend/open_webui/routers/terminals.py component that constructs ws_terminal upstream URLs, impacting all instances that rely on the terminal proxy functionality.

Risk and Exploitability

The CVSS score of 8 indicates a high severity. The EPSS score of <1% indicates a low likelihood of exploitation at the moment. The vulnerability is not listed in the CISA KEV catalog. An attacker can achieve unauthorized terminal access by sending crafted requests to the proxy to impersonate another user, potentially gaining control over the target user's session.

Generated by OpenCVE AI on July 29, 2026 at 12:11 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Open WebUI to v0.10.0 or later to apply the vendor‑provided patch.
  • Implement strict URL encoding and validation for the session_id query parameter before it is used to build the upstream ws_terminal URL.
  • Configure the proxy or upstream server to reject or neutralize untrusted X-User-Id header values, ensuring that identity claims are authenticated and verified before granting terminal access.

Generated by OpenCVE AI on July 29, 2026 at 12:11 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA 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)
History

Thu, 09 Jul 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Thu, 09 Jul 2026 19:00:00 +0000

Type Values Removed Values Added
First Time appeared Open-webui
Open-webui open-webui
Vendors & Products Open-webui
Open-webui open-webui

Thu, 09 Jul 2026 17:15:00 +0000

Type Values Removed Values Added
Description Open WebUI is an extensible, feature-rich, and user-friendly self-hosted AI platform. Prior to 0.10.0, backend/open_webui/routers/terminals.py built the ws_terminal upstream URL from an unencoded session_id and appended user_id as a query parameter, allowing query injection to make the terminal backend resolve another user identity; the HTTP proxy path also forwarded X-User-Id as an integrity-unbound identity claim. This issue is fixed in version 0.10.0.
Title 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)
Weaknesses CWE-287
CWE-290
References
Metrics cvssV3_1

{'score': 8, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H'}


Subscriptions

Open-webui Open-webui
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-10T03:55:48.312Z

Reserved: 2026-07-02T21:05:02.925Z

Link: CVE-2026-59224

cve-icon Vulnrichment

Updated: 2026-07-09T18:41:53.453Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-29T12:15:03Z

Weaknesses
  • CWE-287

    Improper Authentication

  • CWE-290

    Authentication Bypass by Spoofing