Open WebUI, a self-hosted AI chat platform, failed to apply its folder write-access check to two chat-completion endpoints, letting any authenticated user who knows a shared folder identifier inject an attacker-controlled chat entry into a folder where they only have read access or none at all. The blast radius is contained to the 3 tracked downstream dependents of open-webui, and with no EPSS score, no CISA KEV listing, no public exploit, and no Nuclei template, this is not being mass-exploited today — but the package already carries 168 other CVEs and a package risk score of 38/100, signaling ongoing security debt worth tracking. The real risk is trust and integrity, not confidentiality or availability (CVSS 4.3, C:N/I:L/A:N): a low-privilege insider or compromised account can plant content — including social-engineering lures or crafted prompts — into a shared workspace that other users assume is curated and authorized. Patch to open-webui 0.11.1 immediately; this is a straightforward server-side authorization fix with no reliable compensating control short of restricting or disabling folder sharing. Audit shared-folder membership and recent chat entries for unexplained additions as a detection measure until every instance is patched.
What is the risk?
Medium severity (CVSS 4.3, AV:N/AC:L/PR:L/UI:N). Exploitation requires only a low-privileged authenticated account and knowledge of a folder identifier — no user interaction, low complexity — making it easy to execute once an attacker has any account on the instance. However, impact is scoped to integrity only (I:L): the attacker cannot read or modify existing content, exfiltrate data, or disrupt availability, only inject a new chat entry into a folder they shouldn't be able to write to. No EPSS score, no CISA KEV listing, no public PoC, and no Nuclei template exist, so near-term mass exploitation is unlikely. Risk rises for multi-tenant or team-shared Open WebUI deployments (common in enterprise self-hosted AI rollouts) where folder identifiers may be predictable, logged in URLs, or shared broadly across an organization.
How does the attack unfold?
What systems are affected?
| Package | Ecosystem | Vulnerable Range | Patched |
|---|---|---|---|
| Open WebUI | pip | >= 0.10.0, < 0.11.1 | 0.11.1 |
Do you use Open WebUI? You're affected.
How severe is it?
What is the attack surface?
What should I do?
1 step-
1) Upgrade Open WebUI to version 0.11.1 or later immediately — this is the only complete fix, since the flaw is a missing server-side authorization check. 2) Until patched, restrict or disable folder-sharing features for users who should not have cross-user visibility, and avoid exposing folder identifiers in shareable links. 3) Audit
chatandfoldertables (or equivalent admin UI) for chat entries created by users without corresponding folder write permissions, as a compromise indicator. 4) Review access logs for anomalous POST requests to/api/chat/completionsor/api/v1/chat/completionscarryingfolder_idvalues not owned by the requesting user. 5) Apply least-privilege folder sharing going forward — only share folders with users who genuinely need write access.
How is it classified?
Which compliance frameworks are affected?
This CVE is relevant to:
Frequently Asked Questions
What is CVE-2026-87997?
Open WebUI, a self-hosted AI chat platform, failed to apply its folder write-access check to two chat-completion endpoints, letting any authenticated user who knows a shared folder identifier inject an attacker-controlled chat entry into a folder where they only have read access or none at all. The blast radius is contained to the 3 tracked downstream dependents of open-webui, and with no EPSS score, no CISA KEV listing, no public exploit, and no Nuclei template, this is not being mass-exploited today — but the package already carries 168 other CVEs and a package risk score of 38/100, signaling ongoing security debt worth tracking. The real risk is trust and integrity, not confidentiality or availability (CVSS 4.3, C:N/I:L/A:N): a low-privilege insider or compromised account can plant content — including social-engineering lures or crafted prompts — into a shared workspace that other users assume is curated and authorized. Patch to open-webui 0.11.1 immediately; this is a straightforward server-side authorization fix with no reliable compensating control short of restricting or disabling folder sharing. Audit shared-folder membership and recent chat entries for unexplained additions as a detection measure until every instance is patched.
Is CVE-2026-87997 actively exploited?
No confirmed active exploitation of CVE-2026-87997 has been reported, but organizations should still patch proactively.
How to fix CVE-2026-87997?
1) Upgrade Open WebUI to version 0.11.1 or later immediately — this is the only complete fix, since the flaw is a missing server-side authorization check. 2) Until patched, restrict or disable folder-sharing features for users who should not have cross-user visibility, and avoid exposing folder identifiers in shareable links. 3) Audit `chat` and `folder` tables (or equivalent admin UI) for chat entries created by users without corresponding folder write permissions, as a compromise indicator. 4) Review access logs for anomalous POST requests to `/api/chat/completions` or `/api/v1/chat/completions` carrying `folder_id` values not owned by the requesting user. 5) Apply least-privilege folder sharing going forward — only share folders with users who genuinely need write access.
What systems are affected by CVE-2026-87997?
This vulnerability affects the following AI/ML architecture patterns: agent frameworks, team/shared LLM chat interfaces.
What is the CVSS score for CVE-2026-87997?
CVE-2026-87997 has a CVSS v3.1 base score of 4.3 (MEDIUM). The EPSS exploitation probability is 0.22%.
What is the AI security impact?
Affected AI Architectures
MITRE ATLAS Techniques
AML.T0049 Exploit Public-Facing Application Compliance Controls Affected
What are the technical details?
Original Advisory
Open WebUI is an extensible, feature-rich, and user-friendly self-hosted AI platform. From 0.10.0 until 0.11.1, POST /api/chat/completions and POST /api/v1/chat/completions in backend/open_webui/main.py copied a client-supplied folder_id into a new chat without applying the folder write-access check used by the dedicated chat routes. An authenticated user who knew a shared folder identifier could inject an attacker-controlled chat into a folder where the user had read-only or no write access, causing the entry to appear to authorized folder readers. This issue is fixed in version 0.11.1.
Exploitation Scenario
An organization deploys Open WebUI as a shared internal AI assistant, with a folder used by the security team to collect vetted, reviewed chat transcripts for compliance evidence. A low-privileged employee (or a compromised low-privilege account) with only read access to that folder learns its folder_id — perhaps from a shared link, browser history, or by observing UI traffic — and sends a crafted POST request to `/api/chat/completions` including that folder_id. The missing write-access check lets the request succeed, silently inserting an attacker-controlled chat entry into the security team's folder. When the security team later reviews the folder as part of an audit or compliance evidence pack, they unknowingly treat the planted chat as legitimate, potentially acting on fabricated information, clicking an embedded malicious link, or citing it in a compliance report.
Weaknesses (CWE)
CWE-639 Authorization Bypass Through User-Controlled Key
Primary
CWE-862 Missing Authorization
Primary
CWE-639 Authorization Bypass Through User-Controlled Key CWE-862 Missing Authorization CWE-639 — Authorization Bypass Through User-Controlled Key: The system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data.
- [Architecture and Design] For each and every data access, ensure that the user has sufficient privilege to access the record that is being requested.
- [Architecture and Design, Implementation] Make sure that the key that is used in the lookup of a specific user's record is not controllable externally by the user or that any tampering can be detected.
Source: MITRE CWE corpus.
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N References
- github.com/open-webui/open-webui/commit/d9e23b90c100d19b00270aea3cde0501d2354a6c x_refsource_MISC
- github.com/open-webui/open-webui/pull/28366 x_refsource_MISC
- github.com/open-webui/open-webui/releases/tag/v0.11.1 x_refsource_MISC
- github.com/open-webui/open-webui/security/advisories/GHSA-3pf7-q2g3-wj28 x_refsource_CONFIRM
- github.com/advisories/GHSA-3pf7-q2g3-wj28
- nvd.nist.gov/vuln/detail/CVE-2026-87997
Timeline
Related Vulnerabilities
CVE-2026-44551 9.1 open-webui: LDAP auth bypass — full account takeover
Same package: open-webui CVE-2026-45672 8.8 open-webui: code exec gate bypass via API endpoint
Same package: open-webui CVE-2026-44552 8.7 open-webui: Redis cache poisoning enables cross-instance tool hijack
Same package: open-webui CVE-2025-64495 8.7 Open WebUI: XSS-to-RCE via malicious prompt injection
Same package: open-webui CVE-2026-45315 8.7 open-webui: stored XSS → JWT theft and admin takeover
Same package: open-webui