Skip to main content

Open WebUI CVE-2026-45400

| EUVDEUVD-2026-30636 HIGH
Server-Side Request Forgery (SSRF) (CWE-918)
2026-05-14 https://github.com/open-webui/open-webui GHSA-8w7q-q5jp-jvgx
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 to Open WebUI
  2. Delivery
    Submit crafted URL with backslash-at bypass
  3. Exploit
    Validator extracts decoy hostname
  4. Execution
    Requests library connects to internal target
  5. Persist
    Access cloud metadata or internal service
  6. Impact
    Exfiltrate credentials or sensitive data

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 low-privilege authenticated access to an Open WebUI instance (PR:L in CVSS vector) where the attacker can submit URLs for server-side processing. The specific vulnerable code path is the validate_url function paired with requests.get in files.py and similar modules. The RAG web fetch feature must be accessible to the authenticated user-this may be enabled globally or restricted by role depending on deployment configuration. The vulnerability is exploitable against default configurations when ENABLE_RAG_LOCAL_WEB_FETCH is set to False (the restrictive setting), as the URL parser bypass defeats the private IP validation logic. If ENABLE_RAG_LOCAL_WEB_FETCH is True, the validation is less restrictive and SSRF is easier but the parser mismatch still provides an additional bypass vector. No user interaction is required beyond the attacker submitting the crafted URL (UI:N). The attack is network-based (AV:N) with low complexity (AC:L), requiring only knowledge of the URL format 'http://internal-target\@decoy-host'. Key limiting factor: attacker must know or guess internal network targets to exploit effectively-blind SSRF without response visibility limits impact. Cloud metadata endpoints are well-known targets (169.254.169.254), making cloud-hosted instances higher risk than isolated on-premises deployments.

Impact

The CVSS 8.5 score reflects significant real-world risk with network attack vector (AV:N), low complexity (AC:L), and low privileges required (PR:L), but the actual exploitation likelihood depends on deployment context. The Changed scope (S:C) indicates potential to access resources beyond the vulnerable component itself-specifically internal cloud metadata services and private network endpoints. The vulnerability enables authenticated users to access AWS metadata (169.254.169.254), Google Cloud metadata (metadata.google.internal), Azure IMDS (metadata.azure.com), and Alibaba Cloud metadata (100.100.100.200)-all explicitly blocked by default filters that this bypass defeats. However, exploitation requires: (1) authenticated access to Open WebUI, (2) the RAG web fetch feature to be enabled or accessible, and (3) the attacker knowing internal network topology to target valuable endpoints. No EPSS score or CISA KEV listing is provided in the data, suggesting this is not yet widely exploited in the wild. A functional proof-of-concept exists (http://127.0.0.1:6666\@baidu.com) in the GitHub advisory, lowering the barrier for exploitation. The primary risk is to cloud-hosted Open WebUI instances where SSRF can expose IAM credentials via metadata endpoints, potentially leading to full cloud account compromise. On-premises deployments face lower risk unless internal services lack authentication. This is a genuine priority for Open WebUI users in cloud environments, particularly those using AWS, GCP, or Azure, despite moderate authentication requirements.

Exploit ScenarioDerived

An authenticated attacker with low-privilege access to Open WebUI crafts a malicious URL like 'http://169.254.169.254\@example.com/latest/meta-data/iam/security-credentials/' and submits it through a RAG web fetch feature (e.g., document import, URL scraping). The validate_url function parses this as a request to 'example.com' (public IP, passes validation), but the requests library connects to '169.254.169.254' (AWS metadata service). The attacker retrieves IAM role credentials from the response, gaining unauthorized access to AWS resources associated with the instance role. Alternatively, the attacker targets internal services at 'http://127.0.0.1:8080\@safe.com/admin' to access administrative interfaces or scan internal network ports. Public proof-of-concept code exists in the GitHub advisory, enabling straightforward exploitation.

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

URL parser mismatch in Open WebUI allows authenticated users to bypass SSRF protections and access internal network resources. The validate_url function uses Python's urlparse library to extract hostnames for validation, while the requests library handles actual HTTP requests. These libraries disagree on parsing URLs containing backslash characters (e.g., http://127.0.0.1:6666\@1.1.1.1), allowing attackers to craft URLs that pass validation as external addresses but resolve to internal hosts. Exploitation requires low-privilege authentication but no user interaction, enabling access to cloud metadata endpoints and internal services. Fixed in version 0.9.5 per GitHub advisory GHSA-8w7q-q5jp-jvgx.

RemediationAI

Upgrade to Open WebUI version 0.9.5 or later, which addresses the URL parsing discrepancy per vendor advisory GHSA-8w7q-q5jp-jvgx (https://github.com/open-webui/open-webui/security/advisories/GHSA-8w7q-q5jp-jvgx). For pip-installed deployments, run 'pip install --upgrade open-webui>=0.9.5' to apply the fix. If immediate patching is not feasible, implement defense-in-depth measures: (1) Set ENABLE_RAG_LOCAL_WEB_FETCH=False in environment configuration to disable local network fetching entirely-this eliminates the attack surface but breaks legitimate RAG web fetch functionality. (2) Expand WEB_FETCH_FILTER_LIST to include additional internal IP ranges and use network-level egress filtering to block Open WebUI servers from accessing internal networks and cloud metadata endpoints (169.254.169.254, fd00:ec2::254) at the firewall level-note this requires infrastructure changes and may not prevent attacks targeting services on the same host. (3) Restrict Open WebUI access to trusted users only and audit user permissions, as PR:L means any authenticated user can exploit this-this reduces exposure but does not eliminate the vulnerability. Review application logs for suspicious URL patterns containing backslash-at sequences (\@) in web fetch requests to detect potential exploitation attempts. The vendor fix normalizes URL parsing to ensure validation and request libraries agree on hostname extraction.

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

This vulnerability exploits a URL parsing discrepancy between Python's urllib.parse.urlparse and the requests library, a classic example of CWE-918 Server-Side Request Forgery via parser differential. The affected component is Open WebUI's validate_url function (pkg:pip/open-webui), which validates URLs for RAG (Retrieval-Augmented Generation) web fetching capabilities. The root cause is that urlparse treats backslash as a regular character in the authority component, interpreting '@' as the userinfo-host separator, extracting '1.1.1.1' as the hostname from 'http://127.0.0.1:6666\@1.1.1.1'. However, requests follows a different parsing strategy, treating backslash differently and ultimately connecting to '127.0.0.1'. The validation logic specifically blocks private IP ranges (RFC 1918) and cloud metadata endpoints (169.254.169.254, metadata.google.internal, etc.) when ENABLE_RAG_LOCAL_WEB_FETCH is disabled, but this crafted URL bypasses these checks. This is a well-known attack pattern in SSRF vulnerabilities where security controls rely on one parsing library while execution uses another, creating exploitable semantic gaps.

Know when Python 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

Summary

In the open-webui project, a parsing difference between the urlparse and requests libraries led to an SSRF bypass vulnerability.

Details

In the current project, URL validation is performed using the function validate_url.

<img width="1323" height="1145" alt="QQ20260322-202854-22-1" src="https://github.com/user-attachments/assets/896d19f2-c7c3-499a-9052-12aea756ac47" />

The current checking logic uses urlparse to parse the hostname part of the URL for verification.

<img width="1122" height="429" alt="QQ20260322-203014-22-2" src="https://github.com/user-attachments/assets/653520e9-e311-4a5e-8345-a2446e217d88" />

However, there are actually differences in parsing between urlparse and the library that actually sends the request. For example, in files.py, validate_url is used first for URL validation, and then requests.get is used to send the request.

<img width="1269" height="915" alt="QQ20260322-203122-22-3" src="https://github.com/user-attachments/assets/f200aa06-9190-425e-9659-1ecaf95f806b" />

The core issue: urlparse() and requests disagree on which host a URL like http://127.0.0.1:6666\@1.1.1.1 points to:

  • urlparse() treats \ as a regular character and @ as the userinfo-host delimiter, so it extracts hostname as 1.1.1.1 (public)
  • requests treats \ as a path character, connecting to 127.0.0.1 (internal)

Below is a test code I wrote following the open-webui code.

from __future__ import annotations

import ipaddress
import logging
import os
import socket
import urllib.parse
import urllib.request
from typing import Optional, Sequence, Union
import requests

log = logging.getLogger(__name__)
# Same text as open_webui.constants.ERROR_MESSAGES.INVALID_URL
INVALID_URL = (
    "Oops! The URL you provided is invalid. Please double-check and try again."
)
# Same semantics as open_webui.config (ENABLE_RAG_LOCAL_WEB_FETCH / WEB_FETCH_FILTER_LIST)
ENABLE_RAG_LOCAL_WEB_FETCH = (
    os.getenv("ENABLE_RAG_LOCAL_WEB_FETCH", "False").lower() == "true"
)

_DEFAULT_WEB_FETCH_FILTER_LIST = [
    "!169.254.169.254",
    "!fd00:ec2::254",
    "!metadata.google.internal",
    "!metadata.azure.com",
    "!100.100.100.200",
]
_web_fetch_filter_env = os.getenv("WEB_FETCH_FILTER_LIST", "")
if _web_fetch_filter_env == "":
    _web_fetch_filter_env_list: list[str] = []
else:
    _web_fetch_filter_env_list = [
        item.strip()
        for item in _web_fetch_filter_env.split(",")
        if item.strip()
    ]
WEB_FETCH_FILTER_LIST = list(
    set(_DEFAULT_WEB_FETCH_FILTER_LIST + _web_fetch_filter_env_list)
)


def get_allow_block_lists(filter_list):
    allow_list = []
    block_list = []

    if filter_list:
        for d in filter_list:
            if d.startswith("!"):
                block_list.append(d[1:].strip())
            else:
                allow_list.append(d.strip())

    return allow_list, block_list


def is_string_allowed(
    string: Union[str, Sequence[str]], filter_list: Optional[list[str]] = None
) -> bool:
    if not filter_list:
        return True

    allow_list, block_list = get_allow_block_lists(filter_list)
    strings = [string] if isinstance(string, str) else list(string)

    if allow_list:
        if not any(s.endswith(allowed) for s in strings for allowed in allow_list):
            return False

    if any(s.endswith(blocked) for s in strings for blocked in block_list):
        return False

    return True


def resolve_hostname(hostname):
# Get address information
    addr_info = socket.getaddrinfo(hostname, None)
# Extract IP addresses from address information
    ipv4_addresses = [info[4][0] for info in addr_info if info[0] == socket.AF_INET]
    ipv6_addresses = [info[4][0] for info in addr_info if info[0] == socket.AF_INET6]

    return ipv4_addresses, ipv6_addresses


def _validators_url_accept(url: str) -> bool:
    """
    Stand-in for python-validators url(): True if string looks like http(s) URL with host.
    """
    try:
        u = url.strip()
        if not u:
            return False
        p = urllib.parse.urlparse(u)
        if p.scheme not in ("http", "https"):
            return False
        if not p.netloc:
            return False
        return True
    except Exception:
        return False


def _ipv4_private(ip: str) -> bool:
    try:
        a = ipaddress.ip_address(ip)
        return a.version == 4 and a.is_private
    except ValueError:
        return False


def _ipv6_private(ip: str) -> bool:
    try:
        a = ipaddress.ip_address(ip)
        return a.version == 6 and a.is_private
    except ValueError:
        return False


def validate_url(url: Union[str, Sequence[str]]):
    if isinstance(url, str):
        if not _validators_url_accept(url):
            raise ValueError(INVALID_URL)

        parsed_url = urllib.parse.urlparse(url)
# Protocol validation - only allow http/https
        if parsed_url.scheme not in ["http", "https"]:
            log.warning(
                f"Blocked non-HTTP(S) protocol: {parsed_url.scheme} in URL: {url}"
            )
            raise ValueError(INVALID_URL)
# Blocklist check using unified filtering logic
        if WEB_FETCH_FILTER_LIST:
            if not is_string_allowed(url, WEB_FETCH_FILTER_LIST):
                log.warning(f"URL blocked by filter list: {url}")
                raise ValueError(INVALID_URL)

        if not ENABLE_RAG_LOCAL_WEB_FETCH:
# Local web fetch is disabled, filter out any URLs that resolve to private IP addresses
            parsed_url = urllib.parse.urlparse(url)
# Get IPv4 and IPv6 addresses
            ipv4_addresses, ipv6_addresses = resolve_hostname(parsed_url.hostname)
# Check if any of the resolved addresses are private
# This is technically still vulnerable to DNS rebinding attacks, as we don't control WebBaseLoader
            for ip in ipv4_addresses:
                if _ipv4_private(ip):
                    raise ValueError(INVALID_URL)
            for ip in ipv6_addresses:
                if _ipv6_private(ip):
                    raise ValueError(INVALID_URL)
        return True
    elif isinstance(url, Sequence):
        return all(validate_url(u) for u in url)
    else:
        return False

if __name__ == "__main__":
    logging.basicConfig(level=logging.INFO)
# url = "https://127.0.0.1:6666\@1.1.1.1"
    url = "https://127.0.0.1:6666"
    validate_url(url)
    response = requests.get(url)
    print(response.text)

As you can see, the current check on 127.0.0.1:6666 successfully identified it as an internal network IP and blocked it.

<img width="1428" height="273" alt="QQ20260322-203503-22-4" src="https://github.com/user-attachments/assets/cf29b639-d4fe-409e-a516-2424d608739f" />

However, for https://127.0.0.1:6666\@1.1.1.1/, the hostname extracted by validate_url is 1.1.1.1, which is considered a public IP address and therefore passes validation. In reality, this URL is being used to request the internal IP address 127.0.0.1:6666, resulting in an SSRF bypass.

<img width="2255" height="786" alt="QQ20260322-203750-22-5" src="https://github.com/user-attachments/assets/050bc6a4-760f-4d7a-8b52-056778097cd1" />

PoC

http://127.0.0.1:6666\@baidu.com

Impact

SSRF

Executive ViewAI

Why It Matters

Open WebUI versions prior to 0.9.5 contain a server-side request forgery (SSRF) vulnerability that allows authenticated users to bypass URL validation controls and access internal network resources, including cloud metadata endpoints and backend services. This directly exposes sensitive infrastructure and cloud credentials to any user with login access, creating a path for privilege escalation and lateral movement within the network.

Business Impact: High
Compensating Controls

No interim mitigations available pending patch. Implement network segmentation to restrict Open WebUI outbound access to approved external endpoints only; block internal IP ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, 127.0.0.1) at firewall; disable cloud metadata endpoints (169.254.169.254 for AWS, GCP equivalent) from Open WebUI network paths if operationally feasible; enforce strict authentication and monitor for unusual URL requests from application logs.

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.

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

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