Back

HIGH

RAGFlow has Predictable Token Generation Leading to Authentication Bypass Vulnerability

Published Dec 31, 2025

Description

RAGFlow is an open-source RAG (Retrieval-Augmented Generation) engine. In versions prior to 0.22.0, the use of an insecure key generation algorithm in the API key and beta (assistant/agent share auth) token generation process allows these tokens to be mutually derivable. Specifically, both tokens are generated using the same `URLSafeTimedSerializer` with predictable inputs, enabling an unauthorized user who obtains the shared assistant/agent URL to derive the personal API key. This grants them full control over the assistant/agent owner's account. Version 0.22.0 fixes the issue.

Affected products

Remediation

No remediation recorded yet.

Weaknesses (1)

References (5)

Change history (0)

No recorded changes yet.

Sources
CVE.org / MITRE
Status PUBLISHED
Assigner GitHub_M
Published Dec 31, 2025
Updated Jan 2, 2026
Reserved Dec 31, 2025
CISA Vulnrichment
Updated Jan 2, 2026
NVD
Status Analyzed
Modified Sep 23, 2026
Red Hat
Severity n/a
Public date n/a