CVE-2026-40351

CRITICAL CVSS 3.1: 9.8 EPSS 0.64%
Updated Oct 27, 2026
Fastgpt
Parameter Value
CVSS 9.8 (CRITICAL)
Affected Versions before 4.14.9.5
Fixed In 4.14.9.5
Type CWE-943
Vendor Fastgpt
Public PoC No

FastGPT is an AI Agent building platform. In versions prior to 4.14.9.5, the password-based login endpoint uses TypeScript type assertion without runtime validation, allowing an unauthenticated attacker to pass a MongoDB query operator object (e.g., {"$ne": ""}) as the password field. This NoSQL injection bypasses the password check, enabling login as any user including the root administrator.

This issue has been fixed in version 4.14.9.5.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Privileges Required
None
No privileges needed
User Interaction
None
No user interaction needed

Impact Assessment

Confidentiality
High
Complete data leak
Integrity
High
Complete data modification
Availability
High
Complete denial of service

CVSS Vector v3.1

Weakness Type (CWE)

Vulnerable Products 1

Configuration From (including) Up to (excluding)
Fastgpt Fastgpt
cpe:2.3:a:fastgpt:fastgpt:*:*:*:*:*:*:*:*
— 4.14.9.5