CVE-2026-87997: Open WebUI: Any authenticated user can inject chats into another user's folder via chat completions
The chat-completions endpoint reads a folder id out of the request body and saves the newly created chat into that folder without checking that the caller is allowed to write there. Any authenticated user who knows a folder’s id can put a chat of their own into another user’s folder, including a shared folder where they hold read-only access and a folder they have no access to at all. The chat then shows up in that folder for everyone who can read it, under a title and with content the attacker controls. The dedicated chat-creation and chat-move endpoints already enforced this check, the chat-completions path did not.
References
- github.com/advisories/GHSA-3pf7-q2g3-wj28
- github.com/open-webui/open-webui/commit/d9e23b90c100d19b00270aea3cde0501d2354a6c
- github.com/open-webui/open-webui/pull/28366
- github.com/open-webui/open-webui/releases/tag/v0.11.1
- github.com/open-webui/open-webui/security/advisories/GHSA-3pf7-q2g3-wj28
- nvd.nist.gov/vuln/detail/CVE-2026-87997
Code Behaviors & Features
Detect and mitigate CVE-2026-87997 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →