Description
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.
Published: 2026-07-15
Score: 8.5 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Open WebUI versions before 0.9.5 suffer from a stored cross‑site scripting flaw in the OAuth authentication flow. The application incorrectly infers the MIME type of the picture claim URL from the file extension instead of the Content‑Type header, which allows an attacker to upload an SVG file that bypasses image validation. The malicious SVG is stored as a data URI and served to authenticated users as their profile image. When the victim’s browser requests this image, the inline script inside the SVG executes in the same origin, granting the attacker the ability to read authentication tokens and take over the victim’s account.

Affected Systems

All releases of open‑webui:open‑webui prior to 0.9.5 are affected. Users relying on those earlier versions should upgrade to 0.9.5 or later, which removes the insecure MIME‑type inference and properly validates image content.

Risk and Exploitability

The CVSS score of 8.5 indicates high severity, while the EPSS score of <1% suggests a low probability of exploitation at present, and the vulnerability is not listed in the CISA KEV catalog. The likely attack vector is that an attacker injects a malicious OAuth picture claim containing an SVG file and lures a legitimate user to authenticate via that OAuth flow. After the SVG is stored, any subsequent visit to the profile image endpoint triggers client‑side script execution, enabling token theft or full account compromise. Because the payload is embedded as a data URI and requires no external resources, conventional mitigations such as CSP can partly reduce risk, but the definitive fix is to apply the vendor‑supplied patch.

Generated by OpenCVE AI on July 31, 2026 at 04:02 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Open WebUI to version 0.9.5 or later to eliminate the MIME‑type inference flaw and remove the stored XSS vulnerability.
  • If upgrading is infeasible, disable the OAuth profile picture feature or enforce strict MIME‑type checks that reject SVG files unless the Content‑Type header explicitly states image/svg+xml, thereby preventing the payload from being accepted.
  • Deploy a robust Content Security Policy that blocks inline scripts and disallows loading scripts from external origins, mitigating the impact of any remaining XSS payloads.

Generated by OpenCVE AI on July 31, 2026 at 04:02 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 15 Jul 2026 14:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 15 Jul 2026 12:00:00 +0000

Type Values Removed Values Added
Description 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.
Title Open WebUI - Stored Cross-Site Scripting via OAuth Picture Claim SVG Data URI
First Time appeared Openwebui
Openwebui open Webui
Weaknesses CWE-20
CPEs cpe:2.3:a:openwebui:open_webui:*:*:*:*:*:*:*:*
Vendors & Products Openwebui
Openwebui open Webui
References
Metrics cvssV3_1

{'score': 7.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N'}

cvssV4_0

{'score': 8.5, 'vector': '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'}


Subscriptions

Openwebui Open Webui
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-07-15T13:25:55.678Z

Reserved: 2026-06-21T12:37:58.435Z

Link: CVE-2026-56398

cve-icon Vulnrichment

Updated: 2026-07-15T13:20:09.613Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-31T04:15:04Z

Weaknesses
  • CWE-20

    Improper Input Validation