CVE-2026-40351
published critical CVSS 3.1 · 9.8FastGPT: NoSQL Injection in loginByPassword leads to Authentication Bypass
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| labring | — | FastGPT< 4.14.9.5 | Affected | Not stated | GitHub_M |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.8 / 10
- Severity
- critical
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| labring | FastGPT | < 4.14.9.5 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-943 CWE-943: Improper Neutralization of Special Elements in Data Query Logic
References
3Provider assertions
2GitHub_M · cna
FastGPT: NoSQL Injection in loginByPassword leads to Authentication Bypass
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 990fd0e01601cebcef81d629c7a050fd6b4e70913684cc058e93122599617879
- Ingested
- 23 Sep 2026, 09:13:02 UTC
- Source record
- Official CVE record