High severity · published Apr 17, 2026
CVE-2026-40352
FastGPT: NoSQL Injection in updatePasswordByOld Leads to Account Takeover
8.8
CVSS
0.4%
EPSS
No
On KEV
Description
FastGPT is an AI Agent building platform. In versions prior to 4.14.9.5, the password change endpoint is vulnerable to NoSQL injection. An authenticated attacker can bypass the "old password" verification by injecting MongoDB query operators. This allows an attacker who has gained a low-privileged session to change the password of their account (or others if combined with ID manipulation) without knowing the current one, leading to full account takeover and persistence. This issue has been fixed in version 4.14.9.5.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.4% · higher than 32% 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
Affected product
FA
FastGPT
labring
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.8
CVE-2026-40351
FastGPT: NoSQL Injection in loginByPassword leads to Authentication Bypass
9.3
CVE-2026-68929
FastGPT: Unauthenticated WeChat channel hijack and denial of service via shareId-only authorization