Skip to content
HighVulnerability

GHSA-3wgj-c2hg-vm6q: Open WebUI vulnerable to stored XSS via OAuth picture claim stored as SVG data URI in profile_image_url

Published
Record updated
View JSON
Affected
  • open-webui <= 0.9.4
Fixed in
0.9.5
  • released May 10, 2026, 4 days before disclosure

Summary

Open WebUI stores OAuth profile pictures as data URIs whose MIME type is inferred from the picture URL extension via mimetypes.guess_type, so a .svg URL in the OAuth picture claim is saved as data:image/svg+xml. The OAuth path skips the validate_profile_image_url validator that restricts profile images to PNG, JPEG, GIF and WebP. The endpoint GET /api/v1/users/{id}/profile/image then serves the stored SVG as an inline document, and because security headers are off by default, an authenticated user who opens that URL can run script in the Open WebUI origin and read localStorage.token, leading to account takeover.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.