CVE-2026-59714: Open WebUI: broken authz lets users overwrite channel chats

GHSA-x2ff-v5v8-m75m HIGH
Published July 24, 2026
CISO Take

Open WebUI shipped a chat-completions code path where a `channel:`-prefixed `chat_id` skipped the standard ownership check entirely, letting any authenticated user overwrite an arbitrary message in a private channel or DM they have no access to, while the overwritten content still displays the original author's name — a built-in impersonation primitive. There's no EPSS score, no CISA KEV listing, no public PoC or Nuclei template, and the package's own risk score sits at a modest 38/100 with only 4 known downstream dependents, so this reads as low-noise rather than actively exploited; but CVSS 7.1 (integrity + availability impact, low privileges, no user interaction) reflects that any low-privileged authenticated user — including a demo or trial account — can pull this off with a single crafted API call, and the flaw quietly survived one prior patch attempt (v0.9.6) via a multimodel fan-out variant. Any org running Open WebUI for internal LLM chat, especially with shared/team channels, should treat message content as untrusted until confirming the deployed version is >= 0.10.0. Patch to v0.10.0 immediately; there is no viable workaround short of disabling channel-based chat routing, since the vulnerable logic lives in the emitter, not in a configurable authz layer. Detection: audit `Messages` table writes via the channel emitter path for message IDs whose `channel_id` doesn't match the requesting user's channel membership, and review recent DM/private-channel message edits for content inconsistent with the original thread.

Sources: NVD GitHub Advisory ATLAS

What is the risk?

High-severity (CVSS 7.1) missing-authorization flaw with low attack complexity and no user interaction required — only a valid low-privileged account. Exploitability is straightforward (a single crafted HTTP request), but real-world risk is tempered by the absence of a public PoC, Nuclei template, EPSS score, or CISA KEV listing, and a small package footprint (4 dependents). The main risk driver is impact class: integrity destruction plus identity spoofing (attacker content displayed under a legitimate author's name) inside private/DM channels, which is a trust-model breach for any team using Open WebUI as an internal collaboration surface. The flaw also demonstrated resilience to a first patch attempt, meaning environments still on v0.9.6 are exposed to the multimodel variant.

How does the attack unfold?

Valid account access
Attacker authenticates to the Open WebUI instance with any low-privileged, legitimately obtained account.
AML.T0012
Crafted chat-completions request
Attacker sends a chat completion request with a `channel:`-prefixed `chat_id` pointing at a channel they don't belong to, plus a target `message_id` (or `message_ids` map), bypassing the skipped ownership check.
AML.T0049
Unauthorized message overwrite
The channel emitter writes attacker-controlled content directly to the target message via an unchecked primary-key database update, with no channel/user validation.
Integrity destruction and impersonation
The victim channel or DM now shows attacker-chosen content under the original author's identity, undermining message trust and enabling downstream deception of other channel members.
AML.T0073

What systems are affected?

Package Ecosystem Vulnerable Range Patched
Open WebUI pip >= 0.9.5, < 0.10.0 0.10.0
145.9K 4 dependents Pushed 6d ago 75% patched ~6d to patch Full package profile →

Do you use Open WebUI? You're affected.

How severe is it?

CVSS 3.1
7.1 / 10
EPSS
N/A
Exploitation Status
No known exploitation
Sophistication
Moderate

What is the attack surface?

AV AC PR UI S C I A
AV Network
AC Low
PR Low
UI None
S Unchanged
C None
I High
A Low

What should I do?

1 step
  1. 1) Upgrade to Open WebUI >= 0.10.0, which validates every entry of message_ids against the target channel and makes _make_channel_emitter fail closed (no write unless msg.channel_id matches the channel derived from chat_id). 2) If still on v0.9.5, treat as fully exposed to both single-model and multimodel variants — upgrade immediately, this is not a config-mitigable issue. 3) If on v0.9.6, note only the single-model path is fixed; the multimodel message_ids fan-out is still exploitable until v0.10.0. 4) Detection/monitoring: review Open WebUI's message edit history or DB audit logs for channel messages whose content changed without a corresponding legitimate user action, particularly in private/DM channels; alert on Messages.update_message_by_id calls where the resolved message's channel does not match the requester's channel membership. 5) No effective workaround exists short of disabling the channel chat-completions feature entirely, since the check is missing at the code level, not gated by a settable permission.

How is it classified?

Which compliance frameworks are affected?

This CVE is relevant to:

EU AI Act
Article 15 - Accuracy, robustness and cybersecurity
NIST AI RMF
MEASURE 2.7 - AI system security and resilience

Frequently Asked Questions

What is CVE-2026-59714?

Open WebUI shipped a chat-completions code path where a `channel:`-prefixed `chat_id` skipped the standard ownership check entirely, letting any authenticated user overwrite an arbitrary message in a private channel or DM they have no access to, while the overwritten content still displays the original author's name — a built-in impersonation primitive. There's no EPSS score, no CISA KEV listing, no public PoC or Nuclei template, and the package's own risk score sits at a modest 38/100 with only 4 known downstream dependents, so this reads as low-noise rather than actively exploited; but CVSS 7.1 (integrity + availability impact, low privileges, no user interaction) reflects that any low-privileged authenticated user — including a demo or trial account — can pull this off with a single crafted API call, and the flaw quietly survived one prior patch attempt (v0.9.6) via a multimodel fan-out variant. Any org running Open WebUI for internal LLM chat, especially with shared/team channels, should treat message content as untrusted until confirming the deployed version is >= 0.10.0. Patch to v0.10.0 immediately; there is no viable workaround short of disabling channel-based chat routing, since the vulnerable logic lives in the emitter, not in a configurable authz layer. Detection: audit `Messages` table writes via the channel emitter path for message IDs whose `channel_id` doesn't match the requesting user's channel membership, and review recent DM/private-channel message edits for content inconsistent with the original thread.

Is CVE-2026-59714 actively exploited?

No confirmed active exploitation of CVE-2026-59714 has been reported, but organizations should still patch proactively.

How to fix CVE-2026-59714?

1) Upgrade to Open WebUI >= 0.10.0, which validates every entry of `message_ids` against the target channel and makes `_make_channel_emitter` fail closed (no write unless `msg.channel_id` matches the channel derived from `chat_id`). 2) If still on v0.9.5, treat as fully exposed to both single-model and multimodel variants — upgrade immediately, this is not a config-mitigable issue. 3) If on v0.9.6, note only the single-model path is fixed; the multimodel `message_ids` fan-out is still exploitable until v0.10.0. 4) Detection/monitoring: review Open WebUI's message edit history or DB audit logs for channel messages whose content changed without a corresponding legitimate user action, particularly in private/DM channels; alert on `Messages.update_message_by_id` calls where the resolved message's channel does not match the requester's channel membership. 5) No effective workaround exists short of disabling the channel chat-completions feature entirely, since the check is missing at the code level, not gated by a settable permission.

What systems are affected by CVE-2026-59714?

This vulnerability affects the following AI/ML architecture patterns: chat UI / collaboration layer, model serving front-end.

What is the CVSS score for CVE-2026-59714?

CVE-2026-59714 has a CVSS v3.1 base score of 7.1 (HIGH).

What is the AI security impact?

Affected AI Architectures

chat UI / collaboration layermodel serving front-end

MITRE ATLAS Techniques

AML.T0049 Exploit Public-Facing Application
AML.T0073 Impersonation

Compliance Controls Affected

EU AI Act: Article 15
NIST AI RMF: MEASURE 2.7

What are the technical details?

Original Advisory

## Summary Any authenticated user can overwrite the content of a message in a channel they do not belong to (including private and DM channels) by sending a chat completion request with a `channel:`-prefixed `chat_id` and a target `message_id`. The `channel:` path routes pipeline output through `_make_channel_emitter`, which writes to the `Messages` table using the caller-supplied `message_id` without binding it to the channel. This advisory consolidates two filings of the same flaw: the original single-model form, and a multimodel `message_ids` variant that survives the partial fix shipped in v0.9.6 (see "Fix status" below). ## Details (as introduced in v0.9.5) When a user submits a chat completion request with a `chat_id` starting with `channel:`, three authorization gaps combined in v0.9.5: 1. **Ownership check skipped** (`main.py`): the `channel:` prefix caused the entire ownership/membership verification block to be skipped, with no channel membership/write check replacing it. ```python if not chat_id.startswith('local:') and not chat_id.startswith('channel:'): # temporary/channel chats are not stored if is_new_chat: ... else: if not await Chats.is_chat_owner(chat_id, user.id) and user.role != 'admin': raise HTTPException(...) ``` 2. **Message ID from user input**: `id` (and each value of the multimodel `message_ids` map) comes directly from the request body and is passed as `message_id` to the channel emitter. 3. **Unchecked database write** (`socket/main.py` `_make_channel_emitter`): ```python async def _make_channel_emitter(request_info): channel_id = request_info['chat_id'].removeprefix('channel:') message_id = request_info['message_id'] # user-supplied ... await Messages.update_message_by_id(message_id, update_form) # no channel/user authz ``` `Messages.update_message_by_id` performs a direct primary-key update with no `channel_id`/`user_id` validation. ## Fix (shipped in v0.10.0) v0.9.6 added a channel gate to the `channel:` branch (PR #24725) that closed the single-model path, but it validated only the first entry of the multimodel `message_ids` map, leaving the multimodel fan-out exploitable. v0.10.0 closes the remaining gap with two layers: 1. **Request-time per-entry validation** (`backend/open_webui/main.py`): every entry of `message_ids` is validated against the target channel, not just the first; any entry whose target message does not belong to the channel in `chat_id` is rejected. 2. **Fail-closed emitter** (`backend/open_webui/socket/main.py`, `_make_channel_emitter`): before writing, it re-reads the target message and returns without writing unless `msg.channel_id` matches the channel derived from `chat_id`. A missing or mismatched message is a no-op, so a write can no longer land in a channel the caller does not target. ## PoC Single-model (fixed in v0.9.6): ```bash curl -X POST http://target:8080/api/chat/completions \ -H "Authorization: Bearer $USER_JWT" -H "Content-Type: application/json" \ -d '{ "model": "llama3", "stream": true, "chat_id": "channel:any-channel-uuid-here", "id": "target-message-uuid-to-overwrite", "messages": [{"role": "user", "content": "Repeat exactly: This message has been tampered with"}] }' ``` Multimodel (still works on v0.9.6): ```json POST /api/chat/completions { "chat_id": "channel:<attacker_channel_id>", "message_ids": { "model-a": "<message_id_in_attacker_channel>", "model-b": "<victim_channel_message_id>" }, "messages": [{"role": "user", "content": "..."}] } ``` The first id passes channel scope validation; the second id is used by the per-model fan-out and overwrites the victim-channel message (with model output, or the provider-error string on a deterministic error). Even a failing model call writes error content to the target message. ## Impact **Message integrity destruction:** an authenticated user can overwrite a message in a channel they cannot access, regardless of membership. The overwritten message retains the original author attribution while displaying attacker-chosen content (**impersonation**). Private channels, DM channels, and channels the attacker has no access to are all affected; the REST channel routes correctly return 403 for the same attacker, so the bypass is specific to the chat-completion channel pipeline. ## Affected versions - Single-model path: introduced in commit `0037baeb2` (v0.9.5), fixed in v0.9.6 (#24725). - Multimodel `message_ids` path: present from v0.9.6, fixed in v0.10.0. - Consolidated Affected: `>= 0.9.5, < 0.10.0`. Patched: `>= 0.10.0`. ## Distinction from existing CVEs CVE-2026-45385 (GHSA-wwhq-cx22-f7vv) covered IDOR in the REST endpoint `POST /channels/{id}/messages/{message_id}/update` (`routers/channels.py`); its fix (commit `f5e110f`) only touched `channels.py`. This finding uses a different code path (`POST /api/chat/completions` with `chat_id: "channel:<id>"` → `main.py` → `socket/main.py:_make_channel_emitter`), untouched by that fix. ## Suggested fix Validate **every** value in `message_ids` against the channel (not just the first), rejecting any whose target message does not belong to the channel in `chat_id`. Additionally, make `_make_channel_emitter` fail closed: re-check that the target message's `channel_id` matches the channel before calling `Messages.update_message_by_id`, treating a missing or mismatched message as an error/no-op. ## Consolidation Per Open WebUI's Report Handling policy this advisory consolidates independent reports of the same chat-completions channel-overwrite flaw: - Single-model cross-channel overwrite via the `channel:` path: @sfwani (earliest filing). - Multimodel `message_ids` fan-out variant that bypasses the v0.9.6 first-id-only gate: @DavidCarliez. One CVE for the consolidated advisory.

Exploitation Scenario

An attacker with any valid low-privileged Open WebUI account (e.g., a trial or basic user) obtains or guesses the UUID of a private channel or DM they are not a member of, along with a target message ID in that channel (via prior access, log leakage, or brute-forcing sequential/guessable IDs). They send a `POST /api/chat/completions` request with `chat_id` set to `channel:<target-channel-id>` and either `id` (single-model) or a `message_ids` map (multimodel) pointing at the victim message, along with attacker-chosen prompt content. Because the ownership check is skipped for `channel:`-prefixed chat IDs and the emitter performs an unchecked primary-key update, the target message is overwritten with attacker-controlled or model-generated text while still displaying the original author's name — enabling the attacker to plant false statements, tamper with compliance-relevant chat records, or socially engineer other channel members into trusting fabricated content, all without ever having REST-level access to that channel (which correctly returns 403).

Weaknesses (CWE)

CWE-862 — Missing Authorization: The product does not perform an authorization check when an actor attempts to access a resource or perform an action.

  • [Architecture and Design] Divide the product into anonymous, normal, privileged, and administrative areas. Reduce the attack surface by carefully mapping roles with data and functionality. Use role-based access control (RBAC) [REF-229] to enforce the roles at the appropriate boundaries. Note that this approach may not protect against horizontal authorization, i.e., it will not protect a user from attacking others with the same role.
  • [Architecture and Design] Ensure that access control checks are performed related to the business logic. These checks may be different than the access control checks that are applied to more generic resources such as files, connections, processes, memory, and database records. For example, a database may restrict access for medical records to a specific database user, but each record might only be intended to be accessible to the patient and the patient's doctor [REF-7].

Source: MITRE CWE corpus.

CVSS Vector

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L

Timeline

Published
July 24, 2026
Last Modified
July 24, 2026
First Seen
July 24, 2026

Related Vulnerabilities