CVE-2026-59212: Open WebUI: Model meta.knowledge read-only file access can be upgraded to file write/delete
Current main and v0.9.6 still allow an authenticated user to turn read-only access to another user’s file into write/delete access by attaching that file ID to an attacker-controlled workspace model.
This is an incomplete-fix variant of GHSA-vjqm-6gcc-62cr. The current fix adds _verify_knowledge_file_access(), but the validator only checks has_access_to_file(file_id, "read", user). The file write/delete routes later trust has_access_to_file(file_id, "write", user), and that function grants access through any writable model whose meta.knowledge contains the file ID.
The PoV includes a negative control showing the current validator rejects an inaccessible arbitrary file ID. The residual issue is narrower: a file ID that is readable only through a KB read grant is accepted into direct model file metadata, then the same model metadata satisfies later file write/delete checks.
References
- github.com/advisories/GHSA-2xwm-4h2q-ggfx
- github.com/open-webui/open-webui/commit/17df0264929514599dbcb21c6578bcdfa204b04d
- github.com/open-webui/open-webui/pull/26032
- github.com/open-webui/open-webui/releases/tag/v0.10.0
- github.com/open-webui/open-webui/security/advisories/GHSA-2xwm-4h2q-ggfx
- nvd.nist.gov/vuln/detail/CVE-2026-59212
Code Behaviors & Features
Detect and mitigate CVE-2026-59212 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 →