CVE-2025-65958: Open WebUI vulnerable to Server-Side Request Forgery (SSRF) via Arbitrary URL Processing in /api/v1/retrieval/process/web
Open WebUI 0.6.36 and earlier lets any signed-in user make the server fetch an arbitrary URL through POST /api/v1/retrieval/process/web. The URL is not checked, so it can reach cloud metadata endpoints and internal services, and the page content comes back in the response. Fixed in open-webui 0.6.37.
Published Dec 4, 2025 · Analysis Nov 1, 2026
What an attacker can do
The process_web handler in backend/open_webui/routers/retrieval.py passes form_data.url to get_content_from_url(). That calls get_loader() and then a web loader or YoutubeLoader in retrieval/utils.py, which fetch the address. Nothing checks for private ranges, localhost, metadata addresses such as 169.254.169.254, protocol, or an allowlist.
The attacker needs only an account with any role, because the route uses get_verified_user. The report's proof of concept signs in, posts a URL and gets the fetched page text back in file.data.content, so the SSRF is not blind. Aimed at a cloud metadata path, it returns instance credentials on AWS, GCP or Azure. Aimed at internal addresses it reads admin panels, internal APIs and Kubernetes endpoints, and it can map open ports.
Open WebUI is often hosted with many users in front of local model servers. That is a wide pool of accounts, and the host usually sits next to model backends, vector stores and secrets. The CVSS marks a changed scope for this reason.
Who is affected
pip package open-webui <= 0.6.36. Any deployment with user sign-up or more than one account is exposed, and the risk is highest on cloud hosts with a reachable metadata service.
pip show open-webuiFor Docker, check the image tag you run against 0.6.37.
open-webui
- Ecosystem
- PyPI
- Affected
- <= 0.6.36
- Fixed in
- 0.6.37
- Check
pip show open-webui
How to fix it
Upgrade to open-webui 0.6.37:
pip install --upgrade "open-webui>=0.6.37"The fix commit makes validate_url() accept only http and https, and check URLs against a new WEB_FETCH_FILTER_LIST setting. Its built-in list covers cloud metadata hosts: 169.254.169.254, fd00:ec2::254, metadata.google.internal, metadata.azure.com and 100.100.100.200. The environment variable WEB_FETCH_FILTER_LIST takes extra comma-separated entries, where a ! prefix blocks. Add your internal ranges and hostnames there. Also block egress from the Open WebUI host to internal networks.
How to tell if you were hit
Look in reverse-proxy logs for POST requests to /api/v1/retrieval/process/web with URLs on private addresses, localhost, 169.254.169.254 or non-http schemes. On internal services and cloud metadata logs, look for requests from the Open WebUI host that no feature explains. Rotate cloud credentials if the instance role could have been read.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
A Server-Side Request Forgery (SSRF) vulnerability in Open WebUI allows any authenticated user to force the server to make HTTP requests to arbitrary URLs. This can be exploited to access cloud metadata endpoints (AWS/GCP/Azure), scan internal networks, access internal services behind firewalls, and exfiltrate sensitive information. No special permissions beyond basic authentication are required.
Details
The vulnerability exists in the /api/v1/retrieval/process/web endpoint located in backend/open_webui/routers/retrieval.py at lines 1758-1767.
Vulnerable code: @router.post("/process/web") def process_web( request: Request, form_data: ProcessUrlForm, user=Depends(get_verified_user) ): try: collection_name = form_data.collection_name if not collection_name: collection_name = calculate_sha256_string(form_data.url)[:63]
content, docs = get_content_from_url(request, form_data.url) # ← SSRF vulnerability
The form_data.url parameter is passed directly to get_content_from_url() without any validation. This function chain ultimately calls web loaders that fetch arbitrary URLs:
Call chain:
- retrieval.py:1767 → get_content_from_url(request, form_data.url)
- retrieval/utils.py:77 → get_loader(request, url)
- retrieval/utils.py:62 → get_web_loader(url, ...) or YoutubeLoader(url, ...)
- Both loaders fetch the user-supplied URL without validation
No validation is performed for:
- Private IP ranges (RFC1918: 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16)
- Localhost addresses (127.0.0.0/8)
- Cloud metadata endpoints (169.254.169.254, fd00:ec2::254)
- Protocol restrictions (file://, gopher://, etc.)
- Domain allowlisting
PoC
Prerequisites: Valid user account (any role)
Step 1 - Authenticate: TOKEN=$(curl -s "http://localhost:3000/api/v1/auths/signin" \ -H 'Content-Type: application/json' \ -d '{"email":"[email protected]","password":"password"}' \
| python3 -c "import sys,json; print(json.load(sys.stdin)['token'])")
Step 2 - Basic SSRF Test (external URL): curl -s "http://localhost:3000/api/v1/retrieval/process/web" \ -H "Authorization: Bearer $TOKEN" \ -H 'Content-Type: application/json' \ -d '{"url":"http://example.com"}'
Result: Server fetches example.com and returns its content, proving the vulnerability.
{ "status": true, "file": { "data": { "content": "Example Domain This domain is for use in documentation..." } } }
Step 3 - Advanced Attack (AWS metadata): curl -s "http://localhost:3000/api/v1/retrieval/process/web" \ -H "Authorization: Bearer $TOKEN" \ -H 'Content-Type: application/json' \ -d '{"url":"http://169.254.169.254/latest/meta-data/iam/security-credentials/"}'
Result: Server exposes cloud credentials if running on AWS/GCP/Azure.
Other attack examples:
- Internal network: {"url":"http://192.168.1.1"}
- Localhost services: {"url":"http://localhost:5432"}
- Internal APIs: {"url":"http://internal-api.local"}
Impact
Who is affected: All authenticated users (no special permissions required)
Attack capabilities:
- Cloud Environment Compromise
- Steal AWS/GCP/Azure credentials via metadata endpoints
- Result: Full cloud account takeover
- Internal Network Access
- Bypass firewalls to access internal services (databases, admin panels, APIs)
- Port scan and map internal infrastructure
- Result: Complete network visibility
- Data Exfiltration
- Read internal documentation, configurations, secrets
- Access Kubernetes API servers
- Result: Credential theft, API key exposure
Credited to teolines.
Questions
- Does CVE-2025-65958 need an admin account?
No. Any authenticated user can call the endpoint. No special permissions beyond signing in are required.
- Does the attacker see the response?
Yes. The fetched page content comes back in the API response, so data from internal services is readable.
- Which version fixes it?
open-webui 0.6.37, which restricts schemes to http and https and adds a filter list that blocks cloud metadata hosts by default.
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
