# CVE-2026-40352: FastGPT: NoSQL Injection in updatePasswordByOld Leads to Account Takeover

- Severity: High 8.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.39%, higher than 34% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-17T21:09:32.913Z
- Modified: 2026-10-26T21:10:00.170Z
- Weaknesses: CWE-943
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

FastGPT is an AI Agent building platform. In versions prior to 4.14.9.5, the password change endpoint is vulnerable to NoSQL injection. An authenticated attacker can bypass the "old password" verification by injecting MongoDB query operators. This allows an attacker who has gained a low-privileged session to change the password of their account (or others if combined with ID manipulation) without knowing the current one, leading to full account takeover and persistence. This issue has been fixed in version 4.14.9.5.

(As written by CVE List.)

## Affected

- labring FastGPT: < 4.14.9.5
- fastgpt fastgpt: before 4.14.9.5

## References

- <https://github.com/labring/FastGPT/security/advisories/GHSA-422w-vrfj-72g6> (exploit, vendor-advisory)
- <https://github.com/labring/FastGPT/commit/bd966d479fbe414d02679cf79f9eaaab3d100a2d> (patch)
- <https://github.com/labring/FastGPT/releases/tag/v4.14.9.5> (product, release-notes)

## Sources

- CVE List: [CVE-2026-40352](https://www.cve.org/CVERecord?id=CVE-2026-40352), CVE Terms of Use, modified 2026-04-20
- NVD: [CVE-2026-40352](https://nvd.nist.gov/vuln/detail/CVE-2026-40352), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-40352 · Whole record: https://cve.day/CVE-2026-40352.json · Rebuilt by cve.day 2026-11-25T22:59:18.973Z
