CVE-2026-119337: RAGFlow: OpenAI-compatible agent completion bypasses private canvas authorization
RAGFlow is an open-source RAG (Retrieval-Augmented Generation) engine. From 0.25.2 until 0.27.3, POST /api/v1/agents/chat/completions invokes completionopenai and returns through the openai-compatible branch before UserCanvasService.accessible() checks whether the caller may access the requested agent. An authenticated user who knows another user's private agent UUID can execute that Only me workflow and read its output across the user or tenant boundary; configured tools may also cause side effects, but stronger impacts were not demonstrated. This issue is fixed in version 0.27.3.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
RAGFlowto a version that resolves this vulnerability.Fixed in 0.27.3
Event History
Frequently Asked Questions
Who can exploit this issue?
An authenticated RAGFlow user can exploit it if they know the UUID of another user's private agent. The vulnerable endpoint does not require user interaction.
Which deployments are affected?
RAGFlow versions from 0.25.2 through versions before 0.27.3 are affected. The issue concerns private agents configured as "Only me" when requests are made through POST /api/v1/agents/chat/completions.
What can an attacker obtain or do?
An attacker can execute another user's private agent workflow and read its output across a user or tenant boundary. If that agent has configured tools, execution may also cause tool-related side effects, although stronger impacts were not demonstrated.
What is the remediation?
Upgrade RAGFlow to version 0.27.3, which fixes the authorization check ordering issue.