All vulnerabilities

Servers and applications

GHSA-3wgj-c2hg-vm6q

Stored XSS via OAuth picture claim stored as SVG data URI in profile_image_url

Severity
High 7.3
Published
10 May 2026
Last changed
10 May 2026
Added to UpHeron
1 Nov 2026
Fixed in
0.9.5
Weakness
Improper input validation (CWE-20)Cross-site scripting (CWE-79)
Attack
Over the network · Needs a user account · Needs someone to click or open something
Attacker can
Read data · Change data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N
Sources
Project advisories (GitHub)

Description

When a user signs in via OAuth, Open WebUI fetches the picture claim URL, infers a MIME type from the URL extension via mimetypes.guess_type, and stores data:;base64,... as the user's profile image. The OAuth code path does not go through the validate_profile_image_url Pydantic validator that normally restricts profile images to PNG/JPEG/GIF/WebP. A .svg URL in the picture claim lands in the database as data:image/svg+xml;base64,....

The profile image endpoint GET /api/v1/users/{id}/profile/image returns the stored data URI with the attacker-controlled MIME type as Content-Type and Content-Disposition: inline. Security headers (CSP, X-Content-Type-Options) are env-gated and not set by default. An authenticated user navigating directly to that URL gets the SVG as a top-level document, executing /onload in the same origin and able to read localStorage.token` → account takeover.

From open-webui/open-webui's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
Open WebUIServers and applications · github:open-webui/open-webui
  • Every version before 0.9.5

About Open WebUI

self-hosted user interface for artificial intelligence models

From Wikidata, CC0 1.0.
Weekly downloads (PyPI)
355,496PyPI Stats, 15 Nov 2026
Docker Hub pulls
990,663Docker Hub, 15 Nov 2026
GitHub stars
158,684GitHub, 15 Nov 2026
Forks
23,075GitHub, 15 Nov 2026
Latest release
v0.13.3GitHub, 15 Nov 2026
Released
8 Nov 2026GitHub
License
multi-licensingWikidata
First published on GitHub
6 Oct 2023GitHub

References