Aug 4, 2026·7 min read·144 visits
Authenticated collaborators with write access to a shared folder can delete subfolders owned by others, triggering a cascading deletion of the folder owner's private chat history.
A critical broken access control vulnerability in Open WebUI (v0.10.0 to v0.11.0) allows authenticated write-collaborators to delete shared subfolders they do not own. Because deletion triggers a backend cascade using the folder owner's identity, this results in unauthorized permanent deletion of the owner's nested chats, messages, and files.
The vulnerability resides in the backend routing component of Open WebUI, specifically within the delete_folder_by_id handler located in backend/open_webui/routers/folders.py. This handler manages the removal of directories used to organize conversational assets and files. Open WebUI provides collaboration features allowing users to share folders with other team members, exposing an API attack surface accessible to authenticated network clients.
This flaw represents a broken authorization vulnerability classified under CWE-862 (Missing Authorization) and CWE-863 (Incorrect Authorization). The application fails to restrict subfolder deletion privileges exclusively to the folder's creator or system administrators. Instead, authorization checks fallback to evaluating write privileges, which are automatically inherited by collaborators on nested folders.
An authenticated collaborator with write access can issue a delete command targeting subfolders owned by another user. When executed, the backend uses the folder owner's identity to run cascading database deletions, recursively purging the owner's conversations, messages, and associated attachments.
This security issue affects deployments running Open WebUI from version v0.10.0 up to but excluding v0.11.0. The vulnerability is resolved in version v0.11.0 by enforcing that only the original folder owner or a global administrator can authorize folder removal.
The root cause of this vulnerability lies in an architectural separation between root folder access validation and subfolder access validation. In the collaborative model of Open WebUI, write permissions propagate from parent folders down to nested subfolders. Consequently, granting a user write permissions on a shared parent folder implicitly grants them write access to all downstream subfolders.
In the vulnerable implementation of the DELETE /api/v1/folders/{id} endpoint, the logic first attempts to locate the target folder based on the request initiator's user ID. If the initiator is not the folder owner, the query returns nothing. At this stage, instead of throwing an access denied error, the application falls back to check if the target folder has a defined parent_id attribute.
If the folder has a parent ID (making it a subfolder), the system executes a permissive authorization check: await _has_folder_access(user.id, folder, 'write', db). This check is intended to allow write-collaborators to edit and add records inside the directory. However, the system incorrectly treats the destructive action of folder deletion as a standard write operation, bypassing strict ownership requirements.
Furthermore, the backend deletion process triggers a database cascade. To maintain internal database integrity, the backend retrieves the folder owner's ID (folder.user_id) to execute the database purge. Because the cascade is bound to the owner's context, an unauthorized collaborator's request initiates recursive deletions across the owner's private dataset, destroying their chat and document associations.
An analysis of the patch code illustrates the exact conditional branching that led to the vulnerability. The pre-patch logic in backend/open_webui/routers/folders.py contained a bifurcated authorization verification structure that checked for subfolder status and administrative privileges separately:
# Pre-Patch Vulnerable Logic
if not folder:
# Check if it is a shared subfolder with write access
folder = await Folders.get_folder_by_id(id, db=db)
if folder and folder.parent_id:
# High-risk branch: permits non-owners with write access to delete subfolders
if user.role != 'admin' and not await _has_folder_access(user.id, folder, 'write', db):
raise HTTPException(
status_code=status.HTTP_403_FORBIDDEN,
detail=ERROR_MESSAGES.ACCESS_PROHIBITED,
)
elif folder and not folder.parent_id:
# Root shared folders can only be deleted by owner/admin
if user.role != 'admin':
raise HTTPException(
status_code=status.HTTP_403_FORBIDDEN,
detail=ERROR_MESSAGES.ACCESS_PROHIBITED,
)The vulnerability was resolved in commit 915ef7d0798d3175819cedbb2f62d7bf0db78c98 by completely removing this nested conditional block. The updated logic removes the permissive write-access validation and ensures that folder deletion is strictly guarded by ownership or administration privileges:
# Post-Patch Remediated Logic
if not folder:
# Deletion cascades into the owner's data, so only the owner or an admin may delete
folder = await Folders.get_folder_by_id(id, db=db)
if not folder:
raise HTTPException(
status_code=status.HTTP_404_NOT_FOUND,
detail=ERROR_MESSAGES.NOT_FOUND,
)
if user.role != 'admin':
raise HTTPException(
status_code=status.HTTP_403_FORBIDDEN,
detail=ERROR_MESSAGES.ACCESS_PROHIBITED,
)The remediated code establishes a safe hierarchy. If the requesting user does not own the folder, the application fetches the folder by its ID. If the folder exists, the request initiator must have the administrator role to proceed. If the initiator is not an administrator, the handler raises a 403 Forbidden exception, effectively blocking any unauthorized collaborator from executing the deletion cascade.
Exploitation of CVE-2026-70494 requires low-privileged network access to the target Open WebUI instance. The attacker must first be added as a collaborator to a shared folder with write permissions. This workspace configuration allows the attacker's session token to inherit write access to all subfolders created within that directory.
Once the collaborator access is established, the attacker identifies the database identifier of the victim's subfolder. This information is typically exposed during standard directory listing actions or client-side layout rendering. With the target ID, the attacker constructs a direct HTTP request to the vulnerable endpoint.
DELETE /api/v1/folders/<target_subfolder_id> HTTP/1.1
Host: openwebui.example.local
Authorization: Bearer <attacker_jwt_session_token>
Content-Type: application/json
{
"delete_contents": true
}The diagram below outlines the logical divergence between the vulnerable and remediated authorization checks when handling this deletion request:
If the request is sent with the delete_contents parameter set to true, the database engine processes a cascade that recursively deletes all nested chat histories and associated documents owned by the victim. If delete_contents is false, the subfolder is deleted, and the victim's files are orphaned and moved to the root workspace.
The impact of this vulnerability affects the integrity and availability of organizational data. Because Open WebUI functions as an interface for managing institutional knowledge and model training context, the deletion of curated folders can disrupt workflows. The destruction of chat histories and files results in a permanent loss of audit trails and documentation.
An attacker can perform this action silently, requiring no interaction from the targeted folder owner. Since the backend cascade utilizes the folder owner's identity to run the deletion sequence, the application's access log records the deletion as a structural change, masking the collaborator's unauthorized initiation.
The CVSS v3.1 rating is calculated as 8.1 (High) with the vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H. The high availability and integrity impacts indicate that the vulnerability leads to data loss. The requirement for authenticated collaborator privileges lowers the vector's privilege rating to Low (PR:L), but the lack of complexity (AC:L) makes the exploit reliable.
To eliminate the vulnerability, administrators must deploy Open WebUI version v0.11.0 or higher. This release integrates the patch that restricts folder deletion to owners and administrators. The update can be deployed by pulling the latest container images from the official distribution registry.
For instances where immediate version upgrades are restricted due to operational verification policies, a manual patch can be applied to the folder router file. Administrators can access the underlying container filesystem and modify backend/open_webui/routers/folders.py. Replacing the branching logic with a strict administrator validation block mirrors the official upstream fix.
# Manual Hotpatch Override
if not folder:
folder = await Folders.get_folder_by_id(id, db=db)
if not folder or user.role != 'admin':
raise HTTPException(
status_code=status.HTTP_403_FORBIDDEN,
detail=ERROR_MESSAGES.ACCESS_PROHIBITED
)Following any hotpatch or upgrade, security teams should execute authorization testing. Verify that a user assigned write permissions on a shared parent folder receives a 403 Forbidden status code when attempting to delete subfolders belonging to other users. Additionally, monitor system logging to ensure that deletion requests are audited and restricted to authorized sessions.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H| Product | Affected Versions | Fixed Version |
|---|---|---|
Open WebUI Open WebUI | >= v0.10.0, < v0.11.0 | v0.11.0 |
| Attribute | Detail |
|---|---|
| CWE ID | CWE-862 (Missing Authorization) / CWE-863 (Incorrect Authorization) |
| Attack Vector | Network (Remote) |
| CVSS v3.1 Score | 8.1 (High) |
| EPSS Score | Not Available |
| Impact | Data Destruction / Loss of Chat History |
| Exploit Status | POC-Conceptual |
| CISA KEV Status | Not Listed |
The application does not perform an authorization check on the subfolder deletion code path to verify if the request initiator is the owner of the resource or an administrator.
GeoNode versions prior to 5.0.3 contain an unrestricted file upload vulnerability (CWE-434) within the document and dataset ingestion architecture. Authenticated low-privileged users can bypass upload validation via direct REST API interactions, file extension masquerading, metadata mutation via PATCH requests, or malicious archive submissions. This allows attackers to store and serve dangerous file types, alter on-disk file references, or trigger path traversal and resource exhaustion during archive extraction.
CVE-2026-55649 is a stored Cross-Site Scripting (XSS) vulnerability in GeoNode versions prior to 5.0.3. The flaw exists because document abstract metadata fields are ingested via the metadata management pipeline and stored in the backend database without HTML sanitization or input neutralization. An authenticated attacker with privileges to create or edit document metadata can inject arbitrary HTML and JavaScript payloads into these fields. When another user, such as an administrator, views the affected document page or catalog listing, the unencoded payload is rendered into the Document Object Model (DOM) and executes within the victim's browser session.
CVE-2026-55622 (GHSA-qx75-2p3r-pwm5) is an improper access control vulnerability (CWE-284) in Canonical LXD and LXC Incus (tracked as GHSA-c9f5-j9c3-mhrg). In multi-tenant deployments utilizing project-based isolation, the REST API handler for instance creation via POST /1.0/instances verifies that the authenticated user has authorization in the destination project specified by the query parameter, but fails to verify whether the user holds read or view permissions for the source instance when executing a copy operation across projects. Consequently, an authenticated client restricted to a single project can clone instances or snapshots from unauthorized projects into their own project, resulting in complete disclosure of the target instance filesystem and embedded credentials.
An authorization bypass vulnerability in Canonical LXD (tracked as GHSA-7mr3-28h5-m5vx and CVE-2026-55621, and as GHSA-64f3-v33m-w89f in Linux Containers Incus) allows an authenticated user with restricted project access to copy custom storage volumes and volume snapshots from unauthorized projects. The flaw resides in the storagePoolVolumesPost REST API handler, which verifies permissions on the destination project but fails to check whether the caller holds view entitlements on the source project or volume specified in the request body.
A missing authorization and configuration validation vulnerability in Canonical LXD and LXC Incus allows authenticated users within restricted projects to bypass project security boundaries. By smuggling prohibited low-level configuration directives (such as raw.lxc or raw.qemu) inside instance snapshots or backup archives, an attacker can restore these configurations within a restricted project and execute arbitrary commands with root privileges on the underlying host operating system.
A symbolic link traversal vulnerability (CWE-59) in Canonical LXD and Linux Containers Incus allows an authenticated user with image import permissions to read and write arbitrary files on the host filesystem. During image archive unpacking, the daemon fails to reject top-level symbolic links for the instance `templates` directory. Subsequent requests to the instance template API endpoints follow this symbolic link outside the instance storage directory with root privileges, enabling complete host compromise.