CVE-2026-40351 Details
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.
A NoSQL injection vulnerability has been identified in FastGPT, an AI agent building platform, in versions prior to 4.14.9.5. The issue arises in the password-based login endpoint, where TypeScript type assertions are used without proper runtime validation. This flaw enables an unauthenticated attacker to inject a MongoDB query operator, such as 'not equal to' an invalid password, bypassing the password verification process. As a result, the attacker can log in as any user, including the root administrator.
Users are advised to update to FastGPT version 4.14.9.5 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 20, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/labring/FastGPT/commit/bd966d479fbe414d02679cf79f9eaaab3d100a2d | [email protected] | Patch |
| https://github.com/labring/FastGPT/releases/tag/v4.14.9.5 | [email protected] | ProductRelease Notes |
| https://github.com/labring/FastGPT/security/advisories/GHSA-x8mx-2mr7-h9xg | [email protected] | ExploitMitigationVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-943 | Improper Neutralization of Special Elements in Data Query Logic | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| fastgpt fastgpt | < 4.14.9.5 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 27, 2026 | Initial Analysis | [email protected] |
| Apr 17, 2026 | New CVE Received | [email protected] |