CVE-2026-40351: FastGPT is an AI Agent building platform. In versions prior to 4.14.9.5, the password-based login endpoint uses…
CVE-2026-40351 · Severity: critical · CVSS 9.8 · Published 2026-04-17
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.
No. Junglewise Threat Intelligence has no report of CVE-2026-40351 being exploited in the wild.
How severe is CVE-2026-40351?
Critical severity, with a CVSS score of 9.8, published 17 April 2026.
Which products and versions are affected?
Fastgpt. The advisory does not name versions.
Is there a fix for CVE-2026-40351?
No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.
Am I affected by CVE-2026-40351?
Check whether you run Fastgpt. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.