CVE-2026-40351
CVE-2026-40351 — FastGPT: NoSQL Injection in loginByPassword leads to Authentication Bypass
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.
Published Updated Sources: cvelistV5, GitHub_M
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Unreported
no source claims exploitation
EPSS
<1%
chance of exploitation in 30 days
CVSS base
9.8
CRITICAL
CISA SSVC assessment
Three decision points CISA publishes for the CVEs it assesses · SSVC 2.0.3. A stakeholder decision, not a severity score.
Exploitation
PoC
none · proof-of-concept · active
Automatable
Yes
can an attacker script all four kill-chain steps
Technical impact
Total
partial · total control of the vulnerable component
Affected scope
The catalog records vendors and products as separate lists, not pairs, so which product belongs to which vendor is not something this page can say.
Vendors (1)
Products (1)
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 9.8 | CVSS 3.1 | CRITICAL | n/a | n/a | cvelistV5 |
Weakness & attack patterns
- CWE-943
References
3 on the record
- github.com/labring/FastGPT/security/advisories/GHSA-x8mx-2mr7-h9xg
x_refsource_CONFIRM
- github.com/labring/FastGPT/commit/bd966d479fbe414d02679cf79f9eaaab3d100a2d
x_refsource_MISC
- github.com/labring/FastGPT/releases/tag/v4.14.9.5
x_refsource_MISC
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2025-42884 JNDI Injection vulnerability in SAP NetWeaver Enterprise PortalCVSS 6.5 · CISA KEV
- CVE-2026-88024 GridFS data disclosure and deletion via query-operator injection in file IDs in the MongoDB Rust DriverCVSS 8.3
- CVE-2026-88023 GridFS data disclosure and deletion via query-operator injection in file IDs in the MongoDB PHP LibraryCVSS 8.3
- CVE-2026-96744 Unauthorized cache lock takeover via expression injection in lock owner values in MongoDB integration for LaravelCVSS 7.1
- CVE-2026-76543 SPL Injection through Data Model Regular Expression Field Preview in Splunk EnterpriseCVSS 5.4
Elsewhere on this site
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.