
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-59227 is an authorization bypass vulnerability in Open WebUI, a self-hosted AI platform, affecting the POST /api/v1/images/edit endpoint. Versions from 0.8.11 through before 0.10.0 are affected; the route was introduced in 0.8.11 and was ungated from the outset. The vulnerability was disclosed via a GitHub Security Advisory on June 29, 2026, and patched in version 0.10.0 released the same day. It carries a CVSS v3.1 base score of 5.4 (Medium) per NVD, or 4.3 (Medium) per the GitHub advisory (GitHub Advisory).
The root cause is a missing and incorrect authorization check (CWE-862, CWE-863) on the POST /api/v1/images/edit route in backend/open_webui/routers/images.py. While every other image-editing surface in Open WebUI — including POST /api/v1/images/generations, the built-in edit_image tool, and the chat image-edit middleware — enforces both the global ENABLE_IMAGE_EDIT switch and the per-user features.image_generation permission, the direct /edit route relied solely on Depends(get_verified_user) and proceeded directly to provider dispatch with no further checks (GitHub Advisory, Patch Commit). The fix adds a thin wrapper that checks ENABLE_IMAGE_EDIT and the per-user permission before delegating to the shared image_edits() implementation, mirroring the pattern used by the image generation route (PR #26009).
Any authenticated, non-admin user can invoke server-side image editing operations using administrator-configured provider credentials (e.g., IMAGES_EDIT_OPENAI_API_KEY for OpenAI-compatible engines, or credentials for Gemini and ComfyUI), even when the administrator has globally disabled image editing (ENABLE_IMAGE_EDIT=False) or explicitly denied the user image-generation permission. The primary impacts are integrity and availability: unauthorized consumption of billable API resources and bypass of administrator access controls. No cross-user data is exposed and provider credentials are never returned to the caller, so confidentiality impact is none (GitHub Advisory).
POST /api/v1/images/edit request with the bearer token in the Authorization header, Content-Type: application/json, and a JSON body containing a base64-encoded image, a prompt, and a target model (e.g., gpt-image-1):POST /api/v1/images/edit
Authorization: Bearer <non-admin-token>
Content-Type: application/json
{"image":"data:image/png;base64,<base64-encoded-image>","prompt":"edit","model":"gpt-image-1"}ENABLE_IMAGE_EDIT global switch and per-user permission checks, forwarding the request directly to the configured image-edit provider using administrator credentials.POST /api/v1/images/edit requests originating from non-admin user accounts, particularly when ENABLE_IMAGE_EDIT=False is configured; outbound API calls to OpenAI, Gemini, or ComfyUI image-edit endpoints initiated by the Open WebUI server.POST /api/v1/images/edit requests authenticated with non-admin bearer tokens returning HTTP 200 responses; unexpected spikes in image-edit API usage in provider billing dashboards (e.g., OpenAI usage logs for IMAGES_EDIT_OPENAI_API_KEY).features.image_generation permission, or when the global image-edit feature is disabled in the admin panel.Upgrade Open WebUI to version 0.10.0 or later, which enforces ENABLE_IMAGE_EDIT and the per-user features.image_generation permission on the POST /api/v1/images/edit endpoint (GitHub Release v0.10.0, Patch Commit). For instances unable to upgrade immediately, restrict network-level access to the POST /api/v1/images/edit endpoint (e.g., via a reverse proxy or WAF rule) and audit recent image-editing activity for unauthorized usage with administrator credentials. Rotating the IMAGES_EDIT_OPENAI_API_KEY and equivalent provider credentials is also advisable if unauthorized usage is suspected (GitHub Advisory).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."