mediumCVSS 4.3Vulnerability

CVE-2026-87997

## Summary 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. ## Preconditions - An authenticated account of any role. No elevated permission, no admin involvement. - Folders enabled, which is the default (`ENABLE_FOLDERS=true`, `USER_PERMISSIONS_FEATURES_FOLDERS=true`). - The attacker needs the target folder's id. A member of a shared folder gets it from the shared-folder listing. Sharing a folder with named users is available to ordinary users by default; only wildcard public sharing is gated. A folder that was never shared has an id the attacker cannot obtain through any endpoint available to them, so those folders are not practically reachable. - Releases before 0.10.0 contain the same missing check but have no read path that lists a folder's chats across owners, so the injected row was never visible to anyone. ## Impact The integrity of folder contents. An attacker who cannot write to a folder can place chats into it, and every member with read access, the owner included, sees the entry with the attacker's display name and a title the attacker can change to arbitrary text at any time. Members can also open the injected chat and read its messages. In a workspace where a shared folder is treated as trusted, that is a usable surface for planting misleading or phishing content under another team's nose. Nothing is disclosed to the attacker and nothing existing is altered. Writing into a folder gran

Properties

severity
medium
summary
Open WebUI: Any authenticated user can inject chats into another user's folder via chat completions
epss_score
0.00213
cvss_score
4.3
ghsa_published
2026-09-10T15:10:04Z
source_url
https://github.com/advisories/GHSA-3pf7-q2g3-wj28
ghsa_updated
2026-09-10T15:10:05Z
ghsa_id
GHSA-3pf7-q2g3-wj28
cve_id
CVE-2026-87997
cvss_vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
is_ghsa_only
false
epss_percentile
0.11606

Related Entities (6)

ENRICHED_BY (1)

[Source]FIRST EPSS

VULNERABLE_TO (1)

[Software]pip/open-webui

AFFECTS (1)

[Software]pip/open-webui

HAS_WEAKNESS (2)

[Weakness]Missing Authorization
[Weakness]Authorization Bypass Through User-Controlled Key

REPORTED_BY (1)

[Source]GitHub Advisory Database

Explore deeper with Ninja Signal's threat intelligence graph

CVE-2026-87997 (CVSS 4.3) — Ninja Signal Threat Intelligence | Ninja Signal