← All advisories
CVE-2026-51893highBroken access control2026-10-01

CVE-2026-51893 and CVE-2026-51897: RAGFlow 0.24.0 lets any logged-in user open other users' mindmap tasks and evaluation datasets

Two missing ownership checks in RAGFlow 0.24.0. The trace_mindmap handler in api/apps/kb_app.py and the get_dataset handler in api/apps/evaluation_app.py take a caller-supplied task or dataset id and return it without checking that it belongs to the caller's user or tenant.

01.

What it is

CVE-2026-51893: trace_mindmap (api/apps/kb_app.py) accepts a caller-selected task or tenant identifier and reaches the data-access call with no owner, tenant or membership check. In the reporter's reproduction, a second user replays a request with the victim's mindmap task id.

CVE-2026-51897: GET /dataset/<dataset_id> in api/apps/evaluation_app.py only requires login and returns the evaluation dataset without verifying ownership. NVD's description adds that, depending on the exposed entry, it can lead to attacker-controlled code or command execution; the public report only demonstrates the cross-user read.

Both reports name RAGFlow 0.24.0 as affected and do not name a fixed version.

02.

How to check

  1. Check whether you run RAGFlow 0.24.0, especially with more than one user or tenant.
  2. Check whether sign-up is open on your instance, since any account is enough.
03.

How to fix

  1. Move to a current RAGFlow release and confirm in its changelog or code that trace_mindmap and the evaluation get_dataset route check ownership, since the reports name no fixed version.
  2. Until then, turn off public sign-up and keep the instance limited to users who may see each other's data.
04.

Sources

More advisories for this tool
The weekly email

One email a week. Only what changed.

Every new security hole in AI coding tools, MCP servers, app builders and the stacks they generate (Next.js, Supabase, Node, PHP), each with how to check your app and the fix. No roundups of things you already read.

Free, one email a week. Read the latest issue first if you like. One-click unsubscribe in every email. We never sell or share addresses.