CVE-2026-45339: Open WebUI's API key endpoint restrictions bypassed via `x-api-key` header — full message processing on restricted endpoints
(updated )
Open WebUI allows admins to restrict which API endpoints an API key can access. When an API key is restricted from /api/v1/messages, requests using the Authorization: Bearer sk-... header are correctly blocked with 403. However, the same key sent via the x-api-key header bypasses the restriction entirely — the request is authenticated, the model is invoked, and a full response is returned.
References
Code Behaviors & Features
Detect and mitigate CVE-2026-45339 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 →