Skip to content
MediumVulnerability

CVE-2026-49951: RAGFlow server-side request forgery through set_api_key base_url

Identifier
CVE-2026-49951
Published
Record updated
View JSON
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.3%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .

Summary

CVE-2026-49951 affects RAGFlow before 0.27.0. An authenticated attacker can supply an unvalidated base_url to POST /v1/llm/set_api_key, handled by set_api_key() in api/apps/llm_app.py, and force the server to issue requests to arbitrary internal or external endpoints. Raw upstream exception text is returned in the response, leaking internal service details, open ports and configuration fingerprints, including for MySQL, Elasticsearch, Redis, MinIO, the Infinity vector database and cloud metadata endpoints.

Mitigation

Fixed in 0.27.0. Upgrade RAGFlow to version 0.27.0 or later.