Skip to main content
← All vulnerabilities
CVE-2026-40351

FastGPT: NoSQL Injection in loginByPassword leads to Authentication Bypass

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 4.14.9.5
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: total

  3. Record last updated

Affected versions

  • labring FastGPT

    fixed in 4.14.9.5

References 3

GitHub · labring/FastGPT