---
id: CVE-2026-49951
title: RAGFlow < 0.27.0 SSRF via set_api_key base_url Parameter
summary: >-
  RAGFlow before 0.27.0 contains a server-side request forgery vulnerability
  that allows authenticated attackers to force the server to issue requests to
  arbitrary internal or external endpoints by supplying an unvalidated base_url
  to the …
severity: medium
cvss: 6.3
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L'
cvssSource: cna
cwe:
  - CWE-918
vendor: infiniflow
product: ragflow
affected:
  - ragflow < 0.27.0
published: '2026-11-06'
updated: '2026-11-06'
sourceUpdated: '2026-11-06T16:09:16.028Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-49951'
references:
  - url: 'https://github.com/infiniflow/ragflow/releases#release-v0.27.0'
    label: Release Notes
  - url: 'https://github.com/infiniflow/ragflow/pull/17641'
    label: Pull Request
  - url: >-
      https://github.com/infiniflow/ragflow/commit/b058229ab3a79cc2d61bc1724c2e120ce2ede46d
    label: Patch Commit
  - url: >-
      https://www.vulncheck.com/advisories/ragflow-ssrf-via-set-api-key-base-url-parameter
    label: >-
      VulnCheck Advisory: RAGFlow < 0.27.0 SSRF via set_api_key base_url
      Parameter
tags:
  - cve.org
ingestedAt: '2026-11-06T16:57:43.369Z'
epss: 0.00252
epssPercentile: 0.16754
---

## Overview

RAGFlow before 0.27.0 contains a server-side request forgery vulnerability that allows authenticated attackers to force the server to issue requests to arbitrary internal or external endpoints by supplying an unvalidated base_url to the POST /v1/llm/set_api_key endpoint handled by set_api_key() in api/apps/llm_app.py. Attackers can exploit this flaw to probe shared-network services such as MySQL, Elasticsearch, Redis, MinIO, the Infinity vector database, and cloud metadata endpoints, with raw upstream exception text returned in the response leaking internal service details, open ports, and configuration fingerprints.

## Affected

- `ragflow < 0.27.0`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
