Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. open-webui
  4. ›
  5. CVE-2026-59217

CVE-2026-59217: Open WebUI: Upload `metadata.knowledge_id` bypasses the knowledge-base write-access check (read-only users can add files to KB)

July 24, 2026

Open WebUI’s file upload background processing trusts the client-supplied metadata.knowledge_id value and inserts a knowledge_file association before validating that the uploading user has write access to the target knowledge base.

A verified user with only read access to a knowledge base can upload an arbitrary file and set metadata={"knowledge_id":"<target knowledge id>"}. The normal /api/v1/knowledge/{id}/file/add endpoint correctly requires knowledge-base write access, but the upload auto-link path bypasses that authorization check.

The immediate result is unauthorized modification of the target knowledge base’s file membership. The attached attacker-controlled file becomes visible through /api/v1/knowledge/{id}/files, and readers/owners of that knowledge base can retrieve the file through the normal file endpoints because file access is derived from KnowledgeFile membership.

References

  • github.com/advisories/GHSA-7r7x-gjvr-448g
  • github.com/open-webui/open-webui/commit/b7626f05fb92b24ab923ad81a037071ebd5623d1
  • github.com/open-webui/open-webui/pull/26001
  • github.com/open-webui/open-webui/releases/tag/v0.10.0
  • github.com/open-webui/open-webui/security/advisories/GHSA-7r7x-gjvr-448g
  • nvd.nist.gov/vuln/detail/CVE-2026-59217

Code Behaviors & Features

Detect and mitigate CVE-2026-59217 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.10.0

Fixed versions

  • 0.10.0

Solution

Upgrade to version 0.10.0 or above.

Impact 4.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-862: Missing Authorization
  • CWE-863: Incorrect Authorization

Source file

pypi/open-webui/CVE-2026-59217.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 08 Aug 2026 00:17:28 +0000.