Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAttacker controls IdP picture claim
-
DeliveryPoint claim to attacker .svg URL
-
ExploitComplete OAuth login to Open WebUI
-
InstallSVG stored as image/svg+xml data URI
-
C2Victim opens profile image endpoint
-
ExecuteInline SVG script runs in same origin
-
ImpactSteal localStorage token, take over account
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
|
| Exploitation Conditions | Exploitation requires that Open WebUI be configured with OAuth/OIDC login and profile-image provisioning from the IdP |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:N) scoring 8.5 is internally consistent with the description: network-reachable, low complexity, requires low privileges (an authenticated Open WebUI account able to complete OAuth), passive user interaction (the victim must navigate to the image endpoint), and high confidentiality/integrity impact via token theft and account takeover. No EPSS score, no SSVC decision, and no KEV listing were provided, so real-world exploitation probability cannot be quantified from the data - but this is not merely a high-CVSS paper risk: the GHSA advisory includes concrete file/line source evidence proving the bug is real and trivially triggerable by anyone who controls, or can influence, the |
| Exploit ScenarioDerived | An attacker with (or who can influence) an Open WebUI account logs in through an OAuth/OIDC provider whose |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 15, 2026
Stored cross-site scripting in Open WebUI before 0.9.5 lets an attacker plant a malicious SVG as a victim's OAuth profile image and execute script in the application's origin. During OAuth login, the picture claim URL is fetched and its MIME type is guessed from the file extension rather than the response Content-Type, so a .svg URL is stored as a data:image/svg+xml;base64,... URI that bypasses the profile-image allowlist; when an authenticated user opens the profile image endpoint the SVG is served inline with no default CSP, running JavaScript that reads localStorage.token for account takeover. Reported by VulnCheck with a detailed GHSA source-code advisory; no public exploit identified at time of analysis and it is not in CISA KEV.
RemediationAI
Vendor-released patch: 0.9.5 - upgrade Open WebUI to 0.9.5 or later, which routes OAuth-supplied profile images through proper validation. If you cannot upgrade immediately, apply concrete compensating controls: enable a restrictive Content-Security-Policy and set X-Content-Type-Options: nosniff via the environment-gated security-header settings (this neutralizes inline SVG script execution but may require testing against any legitimate inline-content features), and enforce a server-side allowlist so profile images stored as data URIs are limited to PNG/JPEG/GIF/WebP (blocking image/svg+xml). Where feasible, disable OAuth-based profile-image import or the OAuth login path entirely until patched (trade-off: users lose IdP avatar sync / SSO convenience). Reference the vendor advisory GHSA-3wgj-c2hg-vm6q for the authoritative fix. Do not invent alternate version numbers - 0.9.5 is the confirmed fixed release.
Affected VersionsENISA
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
The flaw lives in Open WebUI's OAuth identity-provisioning code (backend/open_webui/utils/oauth.py, _process_picture_url). When a user authenticates via an OpenID Connect / OAuth provider, Open WebUI downloads the image referenced by the IdP picture claim, base64-encodes it, and derives the MIME type using Python's mimetypes.guess_type(picture_url) - an extension-based lookup that trusts the URL string and ignores the actual HTTP Content-Type. This is a classic CWE-20 improper input validation / trust-boundary error: the normal validate_profile_image_url Pydantic validator (in utils/validate.py) restricts profile images to PNG/JPEG/GIF/WebP, but the OAuth existing-user (oauth.py:1536-1540) and new-user (oauth.py:1556-1574) write paths call SQLAlchemy directly via Users.update_user_profile_image_url_by_id / Auths.insert_new_auth, never instantiating those Pydantic models, so the allowlist is skipped entirely. SVG is an active content type - it can carry inline <script> and event handlers - and the endpoint GET /api/v1/users/{id}/profile/image returns the stored data URI with the attacker-chosen image/svg+xml Content-Type and Content-Disposition: inline, while CSP and X-Content-Type-Options are environment-gated and unset by default. The only affected product is open-webui/open-webui (CPE cpe:2.3:a:open-webui:open-webui:*:*:*:*:*:*:*:*). The advisory notes this is the same trust-boundary class as CVE-2025-64496 and CVE-2025-64495 but a distinct sink and code path.
Know when Open Webui gets its next vulnerability
- 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
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
Authenticated OAuth user needed (PR:L) and victim must open the image endpoint (UI:R); token theft yields account takeover (C:H/I:H), no availability impact and same-origin script keeps scope unchanged.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
Open WebUI before 0.9.5 contains a stored cross-site scripting vulnerability in the OAuth authentication flow where the picture claim URL MIME type is inferred from file extension rather than Content-Type header, allowing SVG files to bypass the profile image validator and be stored as data URIs. Authenticated users who visit the profile image endpoint receive attacker-controlled SVG content with inline disposition and no default security headers, enabling script execution in the same origin to steal authentication tokens and achieve account takeover.
Executive ViewAI
Open WebUI before version 0.9.5 contains a stored cross-site scripting vulnerability allowing attackers to steal authentication credentials through malicious profile images, leading to account compromise and unauthorized system access. Any organization running affected versions exposes users to credential theft and account takeover. Immediate containment actions are required to protect active user accounts and downstream data.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Disable or strictly restrict user profile image uploads; (2) Implement Content Security Policy headers prohibiting inline script execution; (3) Enforce MIME type validation from HTTP response Content-Type headers rather than file extensions; (4) Reject SVG and other executable file formats in OAuth profile image handling; (5) Monitor authentication logs for anomalous token access or session activity; (6) Restrict profile image viewing to authenticated users with appropriate access controls; (7) Audit existing user profiles for presence of malicious SVG files.
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 Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
More in Open Webui
View allAn XSS vulnerability exists in open-webui/open-webui versions <= 0.3.8, specifically in the function that constructs the
A Stored Cross-Site Scripting (XSS) vulnerability exists in the chat file upload functionality of open-webui/open-webui
Attacker controlled files can be uploaded to arbitrary locations on the web server's filesystem by abusing a path traver
Stored cross-site scripting in Open WebUI's terminal port preview feature allows an authenticated attacker sharing a ter
In version v0.3.10 of open-webui/open-webui, the `api/v1/utils/pdf` endpoint lacks authentication mechanisms, allowing u
OAuth and SCIM identity confusion in Open WebUI 0.6.41-0.10.x (SQLite-backed deployments only) allows unauthenticated re
DNS rebinding SSRF in Open WebUI versions 0.9.6 through 0.11.0 allows authenticated users who control authoritative DNS
Denial of service in Open WebUI versions 0.9.0-0.11.0 allows unauthenticated remote attackers to stall the application s
In version 0.3.8 of open-webui, an endpoint for converting markdown to HTML is exposed without authentication. Rated hig
Open WebUI is a self-hosted artificial intelligence platform designed to operate entirely offline. [CVSS 7.3 HIGH]
Stored XSS in Open WebUI prior to version 0.7.0 allows authenticated users to inject malicious HTML payloads into chat d
Improper privilege management in Open WebUI 0.10.0 through 0.11.0 allows any authenticated low-privilege user with write
EUVD-2026-44628
GHSA-5p6h-xfw9-p64q
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB