CVE-2026-40351: CWE-943: Improper Neutralization of Special Elements in Data Query Logic in labring FastGPT
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.
AI Analysis
Technical Summary
FastGPT, an AI Agent building platform by labring, contained a critical vulnerability (CVE-2026-40351) in its password login endpoint before version 4.14.9.5. The vulnerability arises from improper neutralization of special elements in data query logic (CWE-943). Specifically, the endpoint uses TypeScript type assertion without runtime validation, allowing attackers to inject MongoDB query operators (e.g., {"$ne": ""}) as the password field. This NoSQL injection bypasses authentication, permitting unauthorized login as any user, including root administrator. The vulnerability has been addressed in FastGPT version 4.14.9.5.
Potential Impact
Successful exploitation allows an unauthenticated attacker to bypass password authentication and gain unauthorized access to any user account, including the root administrator. This leads to full system compromise with confidentiality, integrity, and availability impacts rated high (CVSS 9.8).
Mitigation Recommendations
Upgrade FastGPT to version 4.14.9.5 or later, where this vulnerability has been fixed. Since the vendor has released a fixed version, applying this official patch is the recommended remediation. Patch status is not explicitly stated in the vendor advisory but the description confirms the fix in 4.14.9.5. No additional mitigations are specified.
CVE-2026-40351: CWE-943: Improper Neutralization of Special Elements in Data Query Logic in labring FastGPT
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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
FastGPT, an AI Agent building platform by labring, contained a critical vulnerability (CVE-2026-40351) in its password login endpoint before version 4.14.9.5. The vulnerability arises from improper neutralization of special elements in data query logic (CWE-943). Specifically, the endpoint uses TypeScript type assertion without runtime validation, allowing attackers to inject MongoDB query operators (e.g., {"$ne": ""}) as the password field. This NoSQL injection bypasses authentication, permitting unauthorized login as any user, including root administrator. The vulnerability has been addressed in FastGPT version 4.14.9.5.
Potential Impact
Successful exploitation allows an unauthenticated attacker to bypass password authentication and gain unauthorized access to any user account, including the root administrator. This leads to full system compromise with confidentiality, integrity, and availability impacts rated high (CVSS 9.8).
Mitigation Recommendations
Upgrade FastGPT to version 4.14.9.5 or later, where this vulnerability has been fixed. Since the vendor has released a fixed version, applying this official patch is the recommended remediation. Patch status is not explicitly stated in the vendor advisory but the description confirms the fix in 4.14.9.5. No additional mitigations are specified.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-10T22:50:01.359Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69e2a83ebdfbbecc5994f144
Added to database: 4/17/2026, 9:38:06 PM
Last enriched: 4/17/2026, 9:53:07 PM
Last updated: 4/21/2026, 3:39:48 AM
Views: 19
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.