# CVE-2026-40351: FastGPT is an AI Agent building platform. In versions prior to 4.14.9.5, the password-based login endpoint uses…

Source: https://junglewise.ai/threats/cve-2026-40351-fastgpt-is-an-ai-agent-building-platform-in-versions-prior-to-4  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-04-17  
License: CC BY 4.0 with a link back

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.

Technologies: [Fastgpt](https://junglewise.ai/threats/technologies/fastgpt). Vendors: [Fastgpt](https://junglewise.ai/threats/vendors/fastgpt).

## Quick answers

**Is CVE-2026-40351 exploited in the wild?** 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.

## Affected products

- Fastgpt

## Related threats

- [FastGPT is an AI Agent building platform. In versions prior to 4.14.9.5, the password change endpoint is vulnerable to…](https://junglewise.ai/threats/cve-2026-40352-fastgpt-is-an-ai-agent-building-platform-in-versions-prior-to-4)
- [FastGPT IDOR in chat and team initialization endpoints](https://junglewise.ai/threats/cve-2026-40252-fastgpt-idor-in-chat-and-team-initialization-endpoints)
- [labring FastGPT SSRF in mcpTools runTool endpoint](https://junglewise.ai/threats/cve-2026-40100-labring-fastgpt-ssrf-in-mcptools-runtool-endpoint)
- [labring FastGPT SSRF in MCP tools endpoints](https://junglewise.ai/threats/cve-2026-34163-labring-fastgpt-ssrf-in-mcp-tools-endpoints)
- [Labring FastGPT unauthenticated SSRF in HTTP tools endpoint](https://junglewise.ai/threats/cve-2026-34162-labring-fastgpt-unauthenticated-ssrf-in-http-tools-endpoint)
