CVE-2026-59223: Open WebUI: `WEB_FETCH_FILTER_LIST` host allow/block filter bypassable via URL path and non-label-boundary matching
Open WebUI before 0.10.0 matches the WEB_FETCH_FILTER_LIST host allow/block list against the full URL string with endswith(), so a URL with a path slips past a blocklist entry. Suffix matching also ignores DNS label boundaries. A logged-in user can make the server fetch hosts the admin blocked. Fixed in 0.10.0.
Published Jul 24, 2026 · Analysis Nov 23, 2026
What an attacker can do
is_string_allowed in backend/open_webui/utils/misc.py uses str.endswith(...), and the main call site in retrieval/web/utils.py passed it the whole URL. A blocklist entry !internal.example.com matches only URLs that end with that string. Any URL with a path ends in the path, so the block never fires. An allowlist entry company.com rejected api.company.com/status yet admitted an attacker URL with company.com in its path. At the hostname call site in retrieval/web/main.py, corp.com also matched evilcorp.com, and 10.0.0.1 matched 110.0.0.1.
The attacker needs an account that can trigger a server-side fetch: RAG URL ingestion, URL-to-markdown or web-search content fetch. They can then reach hosts the admin meant to block, and the fetched content is returned to them. The advisory limits the damage. Open WebUI's separate always-on guard (validate_url and _ssrf_safe_new_conn) still blocks loopback, private and link-local addresses, including the cloud metadata address, while ENABLE_RAG_LOCAL_WEB_FETCH is off, the default. What is lost is blocking of specific publicly resolvable hosts, such as split-horizon DNS or internal PaaS endpoints, and enforcement of an allowlist.
Who is affected
pip package open-webui before 0.10.0, where an admin has set WEB_FETCH_FILTER_LIST to block or allow specific hosts. Without that setting, the filter is not in play. Deployments that turn on ENABLE_RAG_LOCAL_WEB_FETCH lose the other guard as well. Check the version:
pip show open-webuiopen-webui
- Ecosystem
- PyPI
- Affected
- < 0.10.0
- Fixed in
- 0.10.0
- Check
pip show open-webui
How to fix it
Upgrade to open-webui 0.10.0:
pip install --upgrade open-webui==0.10.0The fix (pull request 25949) adds is_host_allowed(host, ...), which matches only when the host equals the entry or ends with a dot plus the entry. So corp.com matches api.corp.com but not evilcorp.com, and IP entries match only the identical address. Both web-fetch call sites now pass the parsed hostname rather than the full URL. is_string_allowed stays for unrelated filters. The advisory documents no workaround; keep ENABLE_RAG_LOCAL_WEB_FETCH off and block sensitive hosts at the network layer too.
How to tell if you were hit
Review server logs for web-fetch requests, such as RAG URL ingestion and URL-to-markdown, to hosts on your blocklist, especially URLs with a path or query string. Compare outbound connections from the Open WebUI host with the filter list. Look for ingested documents whose source URL is a blocked or non-allowlisted host. The sources report no exploitation in the wild.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
The administrator-configured WEB_FETCH_FILTER_LIST (the allow/block list applied to server-side web fetches: RAG URL ingestion, URL-to-markdown, web-search content fetch) matches hostnames incorrectly, so the filter can be bypassed.
Details
is_string_allowed (backend/open_webui/utils/misc.py) matches with str.endswith(...), and the primary web-fetch call site (backend/open_webui/retrieval/web/utils.py) called it with the full URL string, not the hostname:
- Blocklist bypass via path. A blocklist entry
!internal.example.comonly matches a URL that *ends with* that string. Any URL with a path (https://internal.example.com/x) ends with/x, so the entry never matches and the fetch proceeds. The blocklist effectively only stopped path-less URLs. - Allowlist false-reject and bypass. An allowlist
company.comrejected the legitimatehttps://api.company.com/statusand admittedhttps://attacker.example/path/company.com. - Non-label-boundary matching at the hostname-shaped call site (
retrieval/web/main.py):endswith('corp.com')also matchedevilcorp.com, and10.0.0.1matched110.0.0.1.
Impact
An authenticated user able to trigger a server-side web fetch can reach hosts the administrator intended to block with WEB_FETCH_FILTER_LIST.
Open WebUI's primary SSRF protection is a separate, always-on guard that rejects any URL resolving to a non-global IP (validate_url and the connection-layer _ssrf_safe_new_conn, active whenever ENABLE_RAG_LOCAL_WEB_FETCH is off, the default). That guard is unaffected by this issue and continues to block loopback, RFC1918 and link-local addresses, including the 169.254.169.254 cloud-metadata endpoint. This bypass therefore does not grant access to those internal targets. What it defeats is the administrator's ability to block specific publicly-resolvable hosts (internal services reachable from the server over a public IP, e.g. split-horizon DNS or internal PaaS endpoints) and to enforce an allowlist. Fetched content is returned to the requester, so for hosts reachable from the server's network position this is a read/content-disclosure SSRF against the admin-blocked host.
Patch
Matching is now performed on the parsed hostname using DNS label boundaries. A dedicated is_host_allowed(host, ...) matches an entry only when host and entry are equal or the entry is a parent domain (host == entry or host.endswith('.' + entry)), so corp.com matches api.corp.com but not evilcorp.com, and IP entries match only the identical address. Both web-fetch call sites pass the parsed hostname rather than the full URL. The generic is_string_allowed is retained unchanged for unrelated non-host filters.
Credit
Reported by @addcontent.
Credited to addcontent, Classic298.
Questions
- Does this let attackers reach the cloud metadata endpoint?
No. The advisory says the separate always-on guard still blocks loopback, private and link-local addresses, including 169.254.169.254, while ENABLE_RAG_LOCAL_WEB_FETCH is off. This bug only defeats the admin host filter.
- Who is affected by CVE-2026-59223?
Deployments before 0.10.0 where an admin set WEB_FETCH_FILTER_LIST to block or allow public hosts, and where logged-in users can trigger server-side fetches. Without the filter list there is nothing to bypass.
- Is the fetched content returned to the attacker?
Yes. The advisory says fetched content goes back to the requester, so for hosts the server can reach, the bypass acts as a content-disclosure SSRF against the host the admin blocked.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology
More Open WebUI vulnerabilities
All Open WebUI entriesCVE-2026-87011
Open WebUI: Unauthenticated requests can stall the server via uncached OIDC fetches in back-channel logout
high7.5Sep 10, 2026CVE-2026-87012
Open WebUI: Any authenticated user can suppress calendar alerts instance-wide via a non-numeric alert value
medium4.3Sep 10, 2026CVE-2026-87013
Open WebUI: Any authenticated user can start a non-terminating request via a folder parent cycle
medium4.3Sep 10, 2026CVE-2026-87014
Open WebUI: Admin demoted through SSO role sync keeps read and write access to all users' notes
medium6.5Sep 10, 2026CVE-2026-87015
Open WebUI: A user's session cookies are sent to tool servers configured for bearer authentication
medium6.8Sep 10, 2026CVE-2026-87016
Open WebUI: Sign-in as another user via wildcard characters in the OAuth subject claim on SQLite
high8.1Sep 10, 2026
