CVE-2026-54008

Open WebUI: Redirect-Bypass SSRF in OAuth `_process_picture_url`

Published Jun 23, 2026 CVSS 3.1 · 8.5 High EPSS < 1% KEV · Not listed
Description
Open WebUI is a self-hosted artificial intelligence platform designed to operate entirely offline. Prior to 0.9.6, backend/open_webui/utils/oauth.py::_process_picture_url calls validate_url(picture_url) on the initial URL only, then invokes aiohttp.ClientSession.get(picture_url, ...) without allow_redirects=False. aiohttp's default is allow_redirects=True, max_redirects=10; the function does not pass the project's AIOHTTP_CLIENT_ALLOW_REDIRECTS env constant either. An attacker with a valid OAuth IdP identity can therefore submit a public URL that 302-redirects to an internal address and read the internal response body via the attacker's own profile_image_url field. This vulnerability is fixed in 0.9.6.

Analysis

AI-generated

Technical impact

Open WebUI’s OAuth picture handling contains a server‑side request forgery flaw that arises during the processing of user‑supplied profile image URLs. The _process_picture_url routine validates only the initial URL, then performs an HTTP GET with aiohttp's defaults – redirects enabled (allow_redirects=True), a maximum of 10 hops – and does not honour the AIOHTTP_CLIENT_ALLOW_REDIRECTS environment variable. An attacker who has a legitimate OAuth IdP token can supply a public URL that issues a 302 redirect to an internal address; the backend follows the redirect, retrieves the internal resource, and embeds its body into the attacker’s profile image field. The result is internal data exposure without privilege escalation, identified as CWE‑918. The defect was addressed in Open WebUI 0.9.6.

Affected Systems

Open WebUI, a self‑hosted artificial intelligence platform. All deployments running a version older than 0.9.6 are affected by this SSRF flaw.

Risk and Exploitability

The CVSS score of 8.5 denotes high severity. No EPSS data is available, and the vulnerability is not listed in the CISA KEV catalog. Based on the description, it is inferred that the attacker must possess a valid OAuth IdP token and submit a crafted picture URL to trigger the SSRF. Once triggered, the attacker can read the content of internal services reachable from the backend via the internal redirect, without needing privilege escalation. This poses a significant risk to organizations that allow external OAuth integrations and expose internal network services.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Open WebUI to version 0.9.6 or later, which prevents following redirects in the picture URL routine.
  • If an upgrade is not immediately possible, configure the environment variable AIOHTTP_CLIENT_ALLOW_REDIRECTS to False or set a low maximum redirect limit to reduce the SSRF window.
  • Review and restrict OAuth IdP configurations to allow only trusted URLs for profile images or implement a whitelist to prevent malicious redirect chains.

Generated by OpenCVE AI on June 24, 2026 at 10:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-226f-f24g-524w Open WebUI: Redirect-Bypass SSRF in OAuth `_process_picture_url` (incomplete-fix sibling of CVE-2026-45401)
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Open-webui
Open-webui open-webui
Vendors & Products Open-webui
Open-webui open-webui
Type Values Removed Values Added
Description Open WebUI is a self-hosted artificial intelligence platform designed to operate entirely offline. Prior to 0.9.6, backend/open_webui/utils/oauth.py::_process_picture_url calls validate_url(picture_url) on the initial URL only, then invokes aiohttp.ClientSession.get(picture_url, ...) without allow_redirects=False. aiohttp's default is allow_redirects=True, max_redirects=10; the function does not pass the project's AIOHTTP_CLIENT_ALLOW_REDIRECTS env constant either. An attacker with a valid OAuth IdP identity can therefore submit a public URL that 302-redirects to an internal address and read the internal response body via the attacker's own profile_image_url field. This vulnerability is fixed in 0.9.6.
Title Open WebUI: Redirect-Bypass SSRF in OAuth `_process_picture_url`
Weaknesses CWE-918
References
Metrics cvssV3_1

{'score': 8.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N'}

Weaknesses
  • CWE-918

    Server-Side Request Forgery (SSRF)

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jun 24, 2026, 1:33 PM
Reserved
Jun 11, 2026, 4:34 PM
Status
Analyzed
Published
Jun 23, 2026, 6:18 PM
Modified
Jun 25, 2026, 1:35 PM