CriticalVulnerability
CVE-2026-40351: FastGPT NoSQL injection in password-based login endpoint
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2026-40351
- Published
- Record updated
- 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.
Topics
Related items
- MediumGitLab critical patches include one for a bug that allows code execution by unauthenticated usersSimilar attack · CSO Online
- HighCVE-2026-115419 - Unintended disclosure of data element to wrong session in Strands Agents SDK A2A ServerSimilar attack · AWS Security Bulletins
- CriticalCVE-2026-114612: LiteLLM admin access via forged credential replay enables MCP stdio commandsSimilar attack · NVD/CVE Database
- LowThird-party evaluators found vulnerabilities in OpenAI monitoring system during test pilotSimilar attack · CNBC Technology
- InfoSomeone hacked the Switch 2 by using an old game and AISimilar attack · The Verge (AI)