GHSA-3wgj-c2hg-vm6q: Open WebUI vulnerable to stored XSS via OAuth picture claim stored as SVG data URI in profile_image_url
- Identifier
- GHSA-3wgj-c2hg-vm6q
- Published
- Record updated
- 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.
Affected packages in the Exposure Registry
Matched by package name and ecosystem. Each entry shows whether the package delegates to a language model and how many tracked packages depend on it.
- open-webuiPyPILLM dependency since 2024-05-20
Related items
- MediumCVE-2026-143967: Wise Chat with AI unauthenticated stored cross-site scriptingSimilar attack, NVD/CVE Database
- MediumCVE-2026-135917: Apache Camel A2A component confused deputy via shared message headersSimilar attack, NVD/CVE Database
- MediumCVE-2026-107489: Improper Authentication vulnerability in Apache Camel A2A component. This issue affects Apache Camel: from 4.21.0…Similar attack, NVD/CVE Database
- MediumNSA urges immediate post-quantum shift after AI labs report cryptography breakthroughsSimilar attack, CSO Online
- LowPerplexity caught an AI attacker casing its cloudSimilar attack, CSO Online