CVE-2026-56398

Open WebUI - Stored Cross-Site Scripting via OAuth Picture Claim SVG Data URI

Published Jul 15, 2026 CVSS 4.0 · 8.5 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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 available
History
Type Values Removed Values Added
Metrics ssvc

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

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'}

Weaknesses
  • CWE-20

    Improper Input Validation

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Jul 15, 2026, 1:25 PM
Reserved
Jun 21, 2026, 12:37 PM
Status
Analyzed
Published
Jul 15, 2026, 12:18 PM
Modified
Jul 16, 2026, 8:03 PM