CVE Explorer
CVE-2026-40351
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.
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"product":"FastGPT","vendor":"labring","versions":[{"status":"affected","version":"< 4.14.9.5"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:ccb6cac3cfade01787c47fa7b1a66d5f2fcb8a7a148185adda0321fe169103cf · sha256:4f299fd5382c0e9f… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:ccb6cac3cfade01787c47fa7b1a66d5f2fcb8a7a148185adda0321fe169103cf · sha256:4f299fd5382c0e9f… · /containers/cna/metrics/0/cvssV3_1
CWE assertions
1 source assertion{"cweId":"CWE-943","description":"CWE-943: Improper Neutralization of Special Elements in Data Query Logic","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:ccb6cac3cfade01787c47fa7b1a66d5f2fcb8a7a148185adda0321fe169103cf · sha256:4f299fd5382c0e9f… · /containers/cna/problemTypes/0/descriptions/0
Source references
3 source assertions{"name":"https://github.com/labring/FastGPT/commit/bd966d479fbe414d02679cf79f9eaaab3d100a2d","tags":["x_refsource_MISC"],"url":"https://github.com/labring/FastGPT/commit/bd966d479fbe414d02679cf79f9eaaab3d100a2d"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:ccb6cac3cfade01787c47fa7b1a66d5f2fcb8a7a148185adda0321fe169103cf · sha256:4f299fd5382c0e9f… · /containers/cna/references/1
{"name":"https://github.com/labring/FastGPT/releases/tag/v4.14.9.5","tags":["x_refsource_MISC"],"url":"https://github.com/labring/FastGPT/releases/tag/v4.14.9.5"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:ccb6cac3cfade01787c47fa7b1a66d5f2fcb8a7a148185adda0321fe169103cf · sha256:4f299fd5382c0e9f… · /containers/cna/references/2
{"name":"https://github.com/labring/FastGPT/security/advisories/GHSA-x8mx-2mr7-h9xg","tags":["x_refsource_CONFIRM"],"url":"https://github.com/labring/FastGPT/security/advisories/GHSA-x8mx-2mr7-h9xg"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:ccb6cac3cfade01787c47fa7b1a66d5f2fcb8a7a148185adda0321fe169103cf · sha256:4f299fd5382c0e9f… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.