Critical severity · published Apr 17, 2026
CVE-2026-40351
FastGPT: NoSQL Injection in loginByPassword leads to Authentication Bypass
9.8
CVSS
0.6%
EPSS
No
On KEV
Description
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.6% · higher than 50% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
FA
FastGPT · labring
< 4.14.9.5 · source: vendor, NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-40351
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-40351
Patch
https://github.com/labring/FastGPT/commit/bd966d479fbe414d02679cf79f9eaaab3d100a2d
Product
https://github.com/labring/FastGPT/releases/tag/v4.14.9.5
Exploit
https://github.com/labring/FastGPT/security/advisories/GHSA-x8mx-2mr7-h9xg
More from FastGPT
10.0
CVE-2026-34162
FastGPT: Unauthenticated SSRF via httpTools Endpoint Leads to Internal API Key Theft
9.9
CVE-2025-49131
FastGPT Sandbox Vulnerable to Sandbox Bypass
9.8
CVE-2026-42302
FastGPT: Unauthenticated Remote Code Execution (RCE) via code-server Misconfiguration in agent-sandbox
9.3
CVE-2026-68929
FastGPT: Unauthenticated WeChat channel hijack and denial of service via shareId-only authorization
9.3
CVE-2026-50562
FastGPT: Untrusted PR artifacts are pushed and deployed by privileged preview workflows
