CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-70494

CVE-2026-70494: Broken Access Control in Open WebUI Folder Deletion Endpoint

Alon Barad
Alon Barad
Software Engineer

Aug 4, 2026·7 min read·2 visits

Executive Summary (TL;DR)

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.

Vulnerability Overview

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.

Root Cause Analysis

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.

Code Analysis

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 Methodology

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.

Impact Assessment

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.

Remediation & Detection Guidance

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.

Official Patches

Open WebUIGitHub Security Advisory GHSA-3cg5-48j3-v4gv
Open WebUIFix Commit 915ef7d0798d3175819cedbb2f62d7bf0db78c98
Open WebUIFix Pull Request PR #27003

Fix Analysis (1)

Technical Appendix

CVSS Score
8.1/ 10
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H

Affected Systems

Open WebUI self-hosted AI platform

Affected Versions Detail

Product
Affected Versions
Fixed Version
Open WebUI
Open WebUI
>= v0.10.0, < v0.11.0v0.11.0
AttributeDetail
CWE IDCWE-862 (Missing Authorization) / CWE-863 (Incorrect Authorization)
Attack VectorNetwork (Remote)
CVSS v3.1 Score8.1 (High)
EPSS ScoreNot Available
ImpactData Destruction / Loss of Chat History
Exploit StatusPOC-Conceptual
CISA KEV StatusNot Listed

MITRE ATT&CK Mapping

T1068Exploitation for Privilege Escalation
Privilege Escalation
CWE-862
Missing Authorization

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.

Vulnerability Timeline

Vulnerability identified and PR #27003 submitted
2026-07-24
Fix commit merged into main branch
2026-07-27
Security Advisory GHSA-3cg5-48j3-v4gv published and CVE-2026-70494 registered
2026-08-04

References & Sources

  • [1]CVE-2026-70494 Record
  • [2]GHSA-3cg5-48j3-v4gv Security Advisory
  • [3]Pull Request #27003
  • [4]Fix Commit 915ef7d0798d3175819cedbb2f62d7bf0db78c98
  • [5]Open WebUI v0.11.0 Release

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•40 minutes ago•CVE-2026-59817
5.3

CVE-2026-59817: Premium Membership Provisioning Bypass via Parameter Tampering in Ghost CMS

An unauthenticated remote business logic vulnerability in Ghost CMS versions 6.27.0 through 6.43.1 allows attackers to bypass paid subscription gates. By injecting reserved metadata fields into public donation Stripe Checkout Sessions, attackers can obtain premium-tier memberships for arbitrary nominal amounts.

Amit Schendel
Amit Schendel
2 views•6 min read
•about 3 hours ago•CVE-2026-70485
7.1

CVE-2026-70485: Server-Side Request Forgery in Open WebUI via NAT64 IP Wrapping Bypass

Open WebUI is susceptible to Server-Side Request Forgery (SSRF) when deployed in networks with NAT64 translation gateways. Authenticated users can bypass host validation checks by encapsulating internal or cloud-metadata IPv4 addresses within globally-routable IPv6 transition prefixes.

Alon Barad
Alon Barad
6 views•5 min read
•about 4 hours ago•CVE-2026-70474
7.6

CVE-2026-70474: Incorrect Authorization and Missing Authentication in Flowise OAuth2 Credential Endpoints

A critical authorization flaw exists in Flowise, a popular drag-and-drop orchestrator for building customized Large Language Model flows. Prior to version 3.1.3, multiple OAuth2 credential endpoints do not filter database lookups by the requesting entity's workspace context. This omission, combined with the exclusion of several endpoints from the global authentication pipeline, permits unauthenticated remote actors to access, manipulate, or steal access tokens linked to external service integrations.

Alon Barad
Alon Barad
2 views•5 min read
•about 5 hours ago•GHSA-RWRP-9823-P2XQ
6.5

GHSA-RWRP-9823-P2XQ: Incomplete Credential Redaction in Flowise API

An incomplete credential redaction mechanism in Flowise allows authenticated users with standard view permissions to retrieve sensitive decrypted third-party credentials in plaintext.

Amit Schendel
Amit Schendel
4 views•6 min read
•about 6 hours ago•CVE-2026-69262
7.1

CVE-2026-69262: Incorrect Authorization Flaw in Flowise Chatflow Deletion Endpoint

CVE-2026-69262 is a high-severity incorrect authorization vulnerability (CWE-863) within the Flowise drag-and-drop LLM flow platform. Prior to version 3.1.3, Flowise did not enforce resource-type validation on its deletion endpoint. Although routing middleware ensured users held deletion privileges for either chatflows or agentflows, the service level lacked validation checks to verify whether the target resource matched the user's specific permissions. Consequently, an authenticated user with only agentflow deletion permissions could delete arbitrary chatflow configurations, leading to unauthorized state modification and service disruption.

Amit Schendel
Amit Schendel
4 views•7 min read
•about 7 hours ago•CVE-2026-69258
8.8

CVE-2026-69258: Unauthenticated Property Injection and Authorization Bypass in Flowise

CVE-2026-69258 is a high-severity property injection and unauthenticated authorization bypass vulnerability in Flowise, a drag-and-drop orchestration interface for building customized LLM workflows. In affected versions prior to 3.1.3, the unauthenticated prediction API endpoint (`POST /api/v1/prediction/:id`) processed client-controlled parameters inside an `overrideConfig` payload without authorization checks. The backend unconditionally spread this object into internal context structures, enabling unauthenticated remote attackers to overwrite critical session values, pollute execution contexts, and bypass flow restrictions.

Amit Schendel
Amit Schendel
8 views•5 min read