Skip to content
CriticalVulnerability

CVE-2026-40351: FastGPT NoSQL injection in password-based login endpoint

Identifier
CVE-2026-40351
Published
Record updated
View JSON
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.6%

Summary

CVE-2026-40351 affects FastGPT, 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, so an unauthenticated attacker can submit a MongoDB query operator object such as {"$ne": ""} as the password field. This NoSQL injection bypasses the password check and allows login as any user, including the root administrator.

Mitigation

This issue has been fixed in version 4.14.9.5.