CVE-2026-44550: Open WebUI's Mass Assignment via Pydantic extra='allow' Allows Creating Folders in Other Users' Accounts
Open WebUI up to 0.8.12 lets any logged-in user create folders inside another user's account. The folder form accepts extra fields, so a user_id in the POST body overwrites the server-assigned owner. The attacker can plant phishing or spam folders in the victim's UI. They cannot read the folders back. Fixed in 0.9.0.
Published May 8, 2026 · Updated May 15, 2026 · Analysis Oct 28, 2026
What an attacker can do
FolderForm in backend/open_webui/models/folders.py sets extra='allow', so unknown JSON fields survive validation and appear in model_dump(exclude_unset=True). In insert_new_folder, the server puts user_id first in the dict and then spreads the user-controlled form data over it. FolderModel declares user_id as a real field, so a user_id sent in POST /api/v1/folders/ replaces the caller's ID and is saved on the Folder row.
The attacker needs an account with features.folders permission, which every user has by default, and the victim's user UUID. The advisory says UUIDs leak through the user search endpoint (GET /api/v1/users/search, open to verified users for the sharing UI), shared chat metadata and channel member lists.
The victim then sees the folder at the next load, because the folder list filters by the viewer's own user_id. The name, meta and data fields are attacker-controlled and render in a trusted part of the UI, so titles like "Security alert" or "Click here to recover account" work as phishing. The attacker can also flood a victim with folders that must be deleted one by one. All read paths filter by the caller's own ID, so the attacker cannot see the result and confidentiality is unaffected.
Who is affected
Affected: open-webui <= 0.8.12 (pip). The report was made against main at commit 6fdd19bf1 and says likely all versions since FolderForm adopted extra='allow'. Any instance with more than one user is in scope, since the folders feature is on by default.
Check the version:
pip show open-webuiFor Docker, check the image tag.
open-webui
- Ecosystem
- PyPI
- Affected
- <= 0.8.12
- Fixed in
- 0.9.0
- Check
pip show open-webui
How to fix it
Upgrade to open-webui 0.9.0 or later:
pip install --upgrade open-webuiThe advisory describes no code change and no workaround. Turning off the features.folders permission for users who do not need it removes the endpoint from their reach until you can upgrade. That is a general measure, not one the advisory lists. Ask users to delete unfamiliar folders they find.
How to tell if you were hit
Query the folder table for rows whose creator differs from user_id, if you log creators, or check request logs for POST /api/v1/folders/ bodies that contain a user_id field. A normal client never sends that field.
Users who report folders they did not create, especially with alarming names or links, are the human signal. Correlate calls to GET /api/v1/users/search from the same account just before the folder POSTs, since that is how an attacker gets victim IDs.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
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)
Credited to Classic298.
Questions
- Can the attacker read the victim's folders through this?
No. All read paths filter by the caller's own user_id, so the attacker can write but not read. The advisory states confidentiality is preserved.
- How does an attacker get a victim's user ID?
From the user search endpoint, shared chat metadata or channel member lists, according to the advisory.
- What is the real harm?
Phishing through attacker-controlled folder names and metadata shown in a trusted UI, and spam that victims must clean up by hand.
- Is it exploited in the wild?
No source reports exploitation. It is not in CISA's KEV catalog, and its EPSS score is low (0.0029).
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 entriesCVE-2026-87011
Open WebUI: Unauthenticated requests can stall the server via uncached OIDC fetches in back-channel logout
high7.5Sep 10, 2026CVE-2026-87012
Open WebUI: Any authenticated user can suppress calendar alerts instance-wide via a non-numeric alert value
medium4.3Sep 10, 2026CVE-2026-87013
Open WebUI: Any authenticated user can start a non-terminating request via a folder parent cycle
medium4.3Sep 10, 2026CVE-2026-87014
Open WebUI: Admin demoted through SSO role sync keeps read and write access to all users' notes
medium6.5Sep 10, 2026CVE-2026-87015
Open WebUI: A user's session cookies are sent to tool servers configured for bearer authentication
medium6.8Sep 10, 2026CVE-2026-87016
Open WebUI: Sign-in as another user via wildcard characters in the OAuth subject claim on SQLite
high8.1Sep 10, 2026
