Open WebUI Cross-Channel Message Overwrite Vulnerability
An authenticated user can overwrite messages in any channel, including private and DM channels, by exploiting the CVE-2026-59714 authorization bypass vulnerability in Open WebUI's chat completion API, leading to message integrity destruction and impersonation.
A high-severity authorization bypass vulnerability, tracked as CVE-2026-59714, has been identified in Open WebUI versions 0.9.5 through 0.9.x, prior to 0.10.0. This flaw allows any authenticated user to overwrite messages in arbitrary channels, including private and direct message channels, even if they are not a member of those channels. The vulnerability resides in the chat completion API, specifically when handling requests with a channel:-prefixed chat_id and a target message_id. This bypasses critical ownership and membership verification steps, leading to unchecked database writes that alter message content while retaining the original author's attribution. This issue results in message integrity destruction and enables impersonation, posing a significant risk to the trustworthiness and privacy of communications within affected Open WebUI instances.
Attack Chain
- An authenticated attacker sends a
POSTrequest to the/api/chat/completionsAPI endpoint. - The request body includes a
chat_idparameter prefixed withchannel:, for example,channel:any-channel-uuid-here, and amessage_idparameter corresponding to a specific message in a target victim channel. - When
main.pyprocesses the request with thechannel:prefix, it incorrectly bypasses the standard ownership and membership verification checks for the channel. - The user-supplied
message_idfrom the request body is passed directly to the_make_channel_emitterfunction insocket/main.py. - The
_make_channel_emitterfunction then callsMessages.update_message_by_id. Messages.update_message_by_idexecutes a direct primary-key database update using the attacker-providedmessage_idwithout performing any additional channel ID or user authorization validation.- The content of the targeted message in the victim's channel is overwritten with attacker-controlled content.
- The overwritten message retains the original author's attribution, allowing the attacker to impersonate the legitimate sender.
Impact
The successful exploitation of CVE-2026-59714 allows any authenticated user to unilaterally overwrite messages in any channel they do not belong to, including private channels and direct messages. This leads to a severe degradation of message integrity and enables sophisticated impersonation attacks, as the altered messages still appear to originate from their original authors. This could be used for spreading misinformation, issuing false instructions, or compromising the privacy and trust within an organization's communication platform. While the advisory does not specify the number of victims or sectors targeted, any organization utilizing vulnerable versions of Open WebUI is at risk of such communication integrity breaches.
Recommendation
- Patch Open WebUI instances immediately to version
0.10.0or later to remediate CVE-2026-59714. - Monitor application logs for
POSTrequests to/api/chat/completionscontaining achat_idparameter that starts withchannel:, especially if the request is not from expected sources or user roles. - Implement WAF or API gateway rules to inspect the JSON body of
POST /api/chat/completionsrequests for thechat_idfield containingchannel:and themessage_idfield. - Review access logs and internal audit trails for any
POSTrequests to thehttp://target:8080/api/chat/completionsendpoint that occurred on affected versions.
Indicators of compromise
1
url
| Type | Value |
|---|---|
| url | http://target:8080/api/chat/completions |