[PR #18961] [CLOSED] Fix SSRF vulnerability in web fetch endpoint (GHSA-c6xv-rcvw-v685) #25034

Closed
opened 2026-04-20 05:43:23 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/18961
Author: @teolines
Created: 11/6/2025
Status: Closed

Base: mainHead: fix/ssrf-ghsa-c6xv-rcvw-v685


📝 Commits (1)

  • 1235ca8 Fix SSRF vulnerability in web fetch endpoint (GHSA-c6xv-rcvw-v685)

📊 Changes

4 files changed (+284 additions, -0 deletions)

View changed files

📝 backend/open_webui/config.py (+19 -0)
📝 backend/open_webui/main.py (+6 -0)
backend/open_webui/retrieval/ssrf_protection.py (+207 -0)
📝 backend/open_webui/routers/retrieval.py (+52 -0)

📄 Description

  • Add SSRF protection module with configurable blocklists
  • Block cloud metadata endpoints by default (AWS, GCP, Azure)
  • Add protocol restrictions (HTTP/HTTPS only)
  • Add DNS resolution validation
  • Maintain backward compatibility with optional IP range blocking

Security: Fixes GHSA-c6xv-rcvw-v685 (CWE-918)
Reported-by: @teorepo


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/18961 **Author:** [@teolines](https://github.com/teolines) **Created:** 11/6/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/ssrf-ghsa-c6xv-rcvw-v685` --- ### 📝 Commits (1) - [`1235ca8`](https://github.com/open-webui/open-webui/commit/1235ca8a4f8d983336ec288df04de148bd9afafd) Fix SSRF vulnerability in web fetch endpoint (GHSA-c6xv-rcvw-v685) ### 📊 Changes **4 files changed** (+284 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `backend/open_webui/config.py` (+19 -0) 📝 `backend/open_webui/main.py` (+6 -0) ➕ `backend/open_webui/retrieval/ssrf_protection.py` (+207 -0) 📝 `backend/open_webui/routers/retrieval.py` (+52 -0) </details> ### 📄 Description - Add SSRF protection module with configurable blocklists - Block cloud metadata endpoints by default (AWS, GCP, Azure) - Add protocol restrictions (HTTP/HTTPS only) - Add DNS resolution validation - Maintain backward compatibility with optional IP range blocking Security: Fixes GHSA-c6xv-rcvw-v685 (CWE-918) Reported-by: @teorepo --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-20 05:43:23 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#25034