AgentbeamBeta
AI agent vulnerability · Open WebUI

CVE-2026-45385: Open WebUI has an IDOR vulnerability in the update_message_by_id API endpoint

mediumCVSS 3.1 4.3GHSA-wwhq-cx22-f7vv

Open WebUI before 0.9.5 lets any member of a group or direct-message channel edit messages written by other members, administrators included. The `update_message_by_id` function checks channel membership but never checks who wrote the message. Only instances with the Channels feature enabled are affected. Fixed in 0.9.5.

Published May 14, 2026 · Updated May 15, 2026 · Analysis Nov 11, 2026

What an attacker can do

In backend/open_webui/routers/channels.py, update_message_by_id branches on channel type. For group and dm channels it calls Channels.is_user_channel_member and stops there. The other branch also tests message.user_id != user.id and the caller's role, so ordinary channels are protected. The group and DM branch lacks that test, so any member can rewrite any message in the channel.

The attacker needs a normal account that is a member of the channel, and no user interaction. The result is forged content: an attacker can change what an administrator appears to have said, alter instructions, links or code that others rely on, and leave the original author's name on it. In a team that uses channels to share prompts, runbooks or links, that is a path to phishing or tampering with shared guidance. Confidentiality and availability are not affected. Channels is off by default, which narrows exposure to instances where an admin turned it on. The reporter tested v0.8.12.

Who is affected

Open WebUI (open-webui on PyPI) before 0.9.5, including 0.8.12 where it was reproduced. Only instances where an admin enabled the Channels feature, with group or DM channels in use, are exposed. Check:

pip show open-webui

open-webui

Ecosystem
PyPI
Affected
< 0.9.5
Fixed in
0.9.5
Check
pip show open-webui

How to fix it

Upgrade to Open WebUI 0.9.5:

pip install --upgrade open-webui==0.9.5

The advisory gives no workaround. If you cannot upgrade, leaving the Channels feature disabled removes the exposure, since it is off by default.

How to tell if you were hit

Messages edited by a user other than their author are the sign. Compare the updated_at of messages in group and DM channels with the author's own activity, and look in access logs for message update calls from accounts that did not post the original. Ask channel members whether any message changed without the author's knowledge.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

An IDOR vulnerability exists in the Channels feature of Open WebUI, allowing any channel member to modify messages sent by other members (including administrators) within the same channel. This vulnerability affects the latest version (v0.8.12) of Open WebUI.

Details

In the update_message_by_id function, for group or dm type channels, only the caller's membership in the channel is checked via the is_user_channel_member function, without verifying message ownership. This allows any channel member to modify messages sent by other members within the same channel. The problematic code is as follows (https://github.com/open-webui/open-webui/blob/main/backend/open_webui/routers/channels.py#L1355) :

if channel.type in ['group', 'dm']:
    if not Channels.is_user_channel_member(channel.id, user.id, db=db):
        raise HTTPException(status_code=status.HTTP_403_FORBIDDEN, detail=ERROR_MESSAGES.DEFAULT())
else:
    if (
        user.role != 'admin'
        and message.user_id != user.id
        and not channel_has_access(user.id, channel, permission='write', strict=False, db=db)
    ):
        raise HTTPException(status_code=status.HTTP_403_FORBIDDEN, detail=ERROR_MESSAGES.DEFAULT())

try:
    message = Messages.update_message_by_id(message_id, form_data, db=db)

Non-group/dm types include a check for the user ID, while the group/dm type clearly lacks this verification.

PoC

The Channels feature is disabled by default and can be enabled first through the admin interface.

Create a group type channel with members including users test1 and test2.

POST /api/v1/channels/create HTTP/1.1
Content-Type: application/json

{
  "name": "idor-test-group",
  "type": "group",
  "user_ids": [
    "cfc3cb19-9e92-4bf7-8b72-1b47fe4ff62c",
    "b9997496-ff80-4c30-a366-95474f85e62b"
  ]
}

User test2 sends a message in the channel.

POST /api/v1/channels/9cff5240-6b22-4c85-bf74-b8dbfe471b16/messages/post HTTP/1.1
Content-Type: application/json
Authorization: Bearer <test2_token>

{"content":"This is test2 secret message"}

User test1 can directly modify the message that test2 just sent.

POST /api/v1/channels/9cff5240-6b22-4c85-bf74-b8dbfe471b16/messages/e0824c09-5712-4400-9b7a-b08eefcf15d3/update HTTP/1.1
Content-Type: application/json
Authorization: Bearer <test1_token>

{"content":"HACKED BY TEST1 - message tampered!"}

Messages sent by administrators can also be modified.

Impact

Malicious users can arbitrarily tamper with messages published by other users (including administrators), allowing them to disseminate false information.

Suggested Fix

Add a message ownership check in the group/dm branch of channels.py.

Credited to kikayli, Classic298.

Questions

Is Open WebUI vulnerable if Channels is off?

Not through this path. Channels is disabled by default, and the flaw is in channel message editing.

Which channel types are affected?

Group and direct-message channels. Other channel types also check the message owner and the caller's role.

Which version fixes CVE-2026-45385?

Open WebUI 0.9.5 fixes it. Versions before it are affected, including 0.8.12 where it was reproduced.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

More Open WebUI vulnerabilities

All Open WebUI entries