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
- 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.
Affected software
| Software | Affected versions |
|---|---|
Open WebUIServers and applications · github:open-webui/open-webui |
|
About Open WebUI
self-hosted user interface for artificial intelligence models
- 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
Website Source code Docker image Package
Vulnerabilities in Open WebUI
- In our list
- 177
- Published in the last 12 months
- 162
- Critical, last 12 months
- 5
- High, last 12 months
- 67
- Known exploited
- 0
- GHSA-3vvh-g22g-jq6rChannel members can post messages shown as a webhook via client-supplied message metadataMedium 4.3 18 Oct 2026
- CVE-2026-109572Terminal users can manage Terminals policies and other users' terminals via the terminal proxyHigh 7.2 28 Sept 2026
- CVE-2026-109292Other users' session tokens disclosed via OAuth-mode connections, tool servers and terminalsHigh 7.6 27 Sept 2026
- CVE-2026-109297Instance-wide stall via automation recurrence rules that evade sub-daily frequency detectionHigh 7.1 27 Sept 2026
- CVE-2026-109288Viewer session token theft via javascript: URLs in chat message linksHigh 7.2 27 Sept 2026
- CVE-2026-109294Any authenticated user can exhaust server memory via a compressed remote image in a chat messageHigh 7.1 27 Sept 2026
References
- GitHub Advisory Database https://github.com/advisories/GHSA-3wgj-c2hg-vm6q
- github.com https://github.com/open-webui/open-webui/security/advisories/GHSA-3wgj-c2hg-vm6q