Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessDiscover victim UUID via /api/v1/users/search
-
DeliveryCraft POST with malicious user_id field
-
ExploitPydantic accepts extra='allow' user_id
-
Executioninsert_new_folder overwrites server user_id
-
PersistFolder persists with victim's user_id
-
ImpactVictim discovers phishing/spam folder in UI
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization checks on every request
MITRE ATT&CK
1 technique across 1 tactic: Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the attacker to have an authenticated account with folder creation permissions (features.folders, enabled by default for all users in Open WebUI). The attacker must also obtain the victim's user UUID, which is non-authenticated-only for certain endpoints but is discoverable through: (1) the intentionally-accessible user search endpoint (/api/v1/users/search) if the victim has a public profile or matching username, (2) shared chat conversation metadata or channel member lists if the victim participates in shared spaces, or (3) earlier enumeration of user lists if the admin has not restricted user discovery. The vulnerability does not require the victim to perform any action (UI:N in CVSS), nor does it require the attacker to have elevated privileges beyond a standard user account. Folders feature must be enabled in the deployment, which is typical for collaborative Open WebUI instances. Default configurations are vulnerable; no special hardening or unusual deployment mode is required. |
| Impact | This vulnerability presents moderate real-world risk despite a CVSS score of 5.0. The CVSS vector (AV:N/AC:L/PR:L/UI:N/S:C/I:L/A:N) correctly reflects that network-based authenticated exploitation is required with low attack complexity. However, SSVC analysis reveals concerning factors: (1) exploitation is straightforward once a victim's UUID is obtained, (2) user UUIDs leak through intentionally-accessible endpoints like /api/v1/users/search and shared chat metadata, and (3) the impact extends beyond the attacker's own scope (Scope:Changed), affecting victim trust and UI integrity. The integrity impact is real but limited - attackers cannot read victim data, only pollute the folder tree with phishing content. Automated exploitation is theoretically possible given UUID discovery can be scripted. The requirement for authentication (PR:L) and known victim UUID limits widespread mass exploitation, but targeted campaigns against specific users are highly feasible. The low CVSS score reflects that impact is confined to folder operations and does not grant access to other data or systems, but the ease of execution and social engineering potential (phishing-capable folder names and metadata) elevate practical risk beyond the numeric score. |
| Exploit ScenarioDerived | An attacker with valid Open WebUI credentials discovers a victim's user UUID via the /api/v1/users/search endpoint (accessible to authenticated users for collaboration features). The attacker then crafts a POST request to /api/v1/folders/ with a folder name like 'URGENT: Verify your account' and supplies the victim's user_id in the JSON body. Because FolderForm uses extra='allow', the malicious user_id field is accepted and spreads into the folder dict, overwriting the server-set value. The folder is persisted with the victim's user_id, and on the victim's next UI load, they see the phishing folder in their folder list with an attacker-controlled name and metadata, appearing as if it belongs to them. The attacker repeats this to plant multiple folders, creating a DoS effect requiring the victim to manually delete each one. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 08, 2026
Mass assignment vulnerability in Open WebUI's folder creation endpoint allows authenticated attackers to create folders in other users' accounts by exploiting Pydantic's extra='allow' configuration. An attacker with a valid account can supply an arbitrary user_id in the POST request body, overwriting the server-assigned value and persisting folders under a victim's account without their knowledge. The attacker can use this to plant phishing content, spam folders, or degrade user experience for targeted victims.
RemediationAI
Upgrade Open WebUI to version 0.9.0 or later, which removes the extra='allow' configuration from FolderForm and implements proper server-side validation of user_id. If immediate upgrade is not possible, apply a temporary compensating control by modifying the insert_new_folder function to explicitly reject any user_id value supplied in the request body and always use the authenticated user's own user_id from the request context. This requires code-level patching in backend/open_webui/models/folders.py (lines 95-106) to ensure server-assigned values cannot be overwritten by form data spread. An alternative (less preferred) mitigation is to remove extra='allow' from FolderForm's model_config, converting it to ConfigDict(extra='forbid'), which will cause Pydantic to reject any unexpected fields in the POST body and raise a validation error. This blocks the attack but may break integrations if external systems rely on passing additional fields. See vendor advisory at https://github.com/open-webui/open-webui/security/advisories/GHSA-hr43-rjmr-7wmm for specific patch details.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability exists in the folder form model (FolderForm in backend/open_webui/models/folders.py) which uses Pydantic's ConfigDict(extra='allow') setting. This configuration permits arbitrary fields beyond the defined schema to pass through validation and be included in model_dump(exclude_unset=True). In the insert_new_folder function (lines 95-106), the server-assigned user_id is initially set but then overwritten via dictionary spread of the user-controlled form data. Since FolderModel declares user_id as an actual field (not just an extra), Pydantic accepts the attacker-supplied value and the ORM persists it directly to the database. The root cause is CWE-862 (Missing Authorization): the application fails to validate that the user_id being written matches the authenticated user's identity, instead relying on Pydantic validation alone which is insufficient for security-sensitive fields.
Know when Python gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:N
Primary rating from Vendor (https://github.com/open-webui/open-webui) · only source for this CVE.
CVSS VectorVendor: https://github.com/open-webui/open-webui
DescriptionCVE.org
Mass Assignment via Pydantic extra='allow' Allows Creating Folders in Other Users' Accounts
Affected Component
Folder creation endpoint and form model:
backend/open_webui/models/folders.py(lines 72-77,FolderFormwithextra='allow')backend/open_webui/models/folders.py(lines 95-106,insert_new_folderdict construction)backend/open_webui/routers/folders.py(line 119,create_folderendpoint)
Affected Versions
Current main branch (commit 6fdd19bf1) and likely all versions since FolderForm adopted extra='allow'.
Description
FolderForm uses model_config = ConfigDict(extra='allow'), which permits arbitrary fields to pass through Pydantic validation and be included in model_dump(exclude_unset=True). In insert_new_folder, the server-assigned user_id is placed at the start of the dict and then overwritten by the spread of form data:
# models/folders.py:95-106
folder = FolderModel(
**{
'id': id,
# server
'user_id': user_id,
# server - overwritten below
**(form_data.model_dump(exclude_unset=True) or {}),
# user-controlled (extra='allow')
'parent_id': parent_id,
'created_at': int(time.time()),
'updated_at': int(time.time()),
}
)Because FolderModel declares user_id: str as a real field (not just a form extra), any attacker-supplied user_id in the POST body is accepted by the model and persisted on the Folder row.
Attack Scenario
- Attacker discovers a victim's user ID. User UUIDs commonly leak via the user search endpoint (
GET /api/v1/users/search, intentionally accessible to verified users for sharing UI), shared chat metadata, or channel member lists. - Attacker sends:
POST /api/v1/folders/
{
"name": "Important: Click here",
"user_id": "<victim_user_id>",
"meta": {"icon": "warning"},
"data": {...}
}- Pydantic accepts the extra
user_idfield (allowed byextra='allow'). insert_new_folderspreads the form data over the server-set'user_id': user_id, overwriting it with the attacker's value.- The
Folderrow is persisted withuser_id = <victim_user_id>. - The victim sees the attacker-planted folder in their UI on next load because
GET /api/v1/folders/filters by the viewer's ownuser_id.
The attacker can repeat this to plant multiple folders, use crafted name values for phishing ("Click here to recover account" / "Security alert"), and abuse the meta and data fields to add visual elements that further mimic legitimate content.
Impact
- Unauthorized write into victim's folder tree
- Phishing surface: attacker-controlled
name,meta, anddatarender in the victim's UI in a trusted context - DoS / spam: attacker can flood a victim with arbitrary folders; victim must manually delete each one
- Attacker cannot read the folder back - all read paths filter by the caller's own
user_id- so confidentiality is preserved, but integrity and trust are compromised
Preconditions
- Attacker must have an authenticated account with
features.folderspermission (default for all users) - Attacker must know or guess the victim's user UUID (obtainable through various non-sensitive endpoints)
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser
pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi
The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica
OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph
pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.
Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301
In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse
Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne
EUVD-2026-30603
GHSA-hr43-rjmr-7wmm
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB