# CVE-2026-49951: RAGFlow < 0.27.0 SSRF via set_api_key base_url Parameter

Status: published. Published: 2026-11-06. Updated: 2026-11-09.

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.

## Remediation

- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: CNA: VulnCheck) — https://github.com/infiniflow/ragflow/pull/17641
- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: CNA: VulnCheck) — https://github.com/infiniflow/ragflow/commit/b058229ab3a79cc2d61bc1724c2e120ce2ede46d

## Affected products and versions

- infiniflow / ragflow (infiniflow/ragflow): ≥ 0; < 0.27.0 (affected, semver). Source: CNA: VulnCheck

## Severity and prioritization

- CVSS 4.0: 5.3 (medium); CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N; source: CNA: VulnCheck

- CVSS 3.1: 6.3 (medium); CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L; source: CNA: VulnCheck

- CVSS 4.0: 5.3 (medium); CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X; source: NVD: disclosure@vulncheck.com

- CVSS 3.1: 6.3 (medium); CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L; source: NVD: disclosure@vulncheck.com

- CISA KEV: No listing in collected sources

- EPSS: 0.25% as of 2026-11-09; percentile 16.75%

- SSVC: exploitation none; automatable no; technical impact partial; source ADP: CISA-ADP

- Weaknesses: CWE-918

## Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

## References

- https://github.com/infiniflow/ragflow/releases#release-v0.27.0 (CNA: VulnCheck; release-notes)

- https://github.com/infiniflow/ragflow/pull/17641 (CNA: VulnCheck; issue-tracking, patch)

- https://github.com/infiniflow/ragflow/commit/b058229ab3a79cc2d61bc1724c2e120ce2ede46d (CNA: VulnCheck; patch)

- https://www.vulncheck.com/advisories/ragflow-ssrf-via-set-api-key-base-url-parameter (CNA: VulnCheck; third-party-advisory)

- https://github.com/infiniflow/ragflow/commit/b058229ab3a79cc2d61bc1724c2e120ce2ede46d (disclosure@vulncheck.com)

- https://github.com/infiniflow/ragflow/pull/17641 (disclosure@vulncheck.com)

- https://github.com/infiniflow/ragflow/releases#release-v0.27.0 (disclosure@vulncheck.com)

- https://www.vulncheck.com/advisories/ragflow-ssrf-via-set-api-key-base-url-parameter (disclosure@vulncheck.com)

## Provenance

- CNA: VulnCheck: https://www.cve.org/CVERecord?id=CVE-2026-49951; retrieved 2026-11-09; source updated 2026-11-09

- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-49951; retrieved 2026-11-10; source updated 2026-11-09

- FIRST EPSS: https://api.first.org/data/v1/epss?cve=CVE-2026-49951; retrieved 2026-11-09; source updated Not reported

Revision: 5d6dd91244a1699660d36f4f3db46ea1753c9b0bc809c57e4e2522fd1785767f

Canonical: https://y2.dev/cve/CVE-2026-49951

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.