{"id":"CVE-2026-40352","aliases":["CVE-2026-40352"],"related":[],"kind":"vulnerability","state":"published","title":"FastGPT: NoSQL Injection in updatePasswordByOld Leads to Account Takeover","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"FastGPT es una plataforma de creación de agentes de IA. En versiones anteriores a la 4.14.9.5, el endpoint de cambio de contraseña es vulnerable a inyección NoSQL. Un atacante autenticado puede omitir la verificación de la ’contraseña antigua’ inyectando operadores de consulta de MongoDB. Esto permite a un atacante que ha obtenido una sesión con privilegios bajos cambiar la contraseña de su cuenta (o de otras si se combina con manipulación de ID) sin conocer la actual, lo que lleva a una toma de control total de la cuenta y persistencia. Este problema ha sido solucionado en la versión 4.14.9.5.","source":"nvd"}],"published":"2026-04-17T21:09:32.913Z","modified":"2026-10-26T21:10:00.170Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":["CWE-943"],"affected":[{"ranges":[{"version":"< 4.14.9.5","status":"affected"}],"vendor":"labring","product":"FastGPT","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"4.14.9.5"}],"vendor":"fastgpt","product":"fastgpt","cpe":"cpe:2.3:a:fastgpt:fastgpt:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/labring/FastGPT/security/advisories/GHSA-422w-vrfj-72g6","tags":["exploit","vendor-advisory","x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/labring/FastGPT/commit/bd966d479fbe414d02679cf79f9eaaab3d100a2d","tags":["patch","x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/labring/FastGPT/releases/tag/v4.14.9.5","tags":["product","release-notes","x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2026-04-20T13:23:11.617Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-40352","url":"https://www.cve.org/CVERecord?id=CVE-2026-40352","licence":"CVE Terms of Use","modified":"2026-04-20T13:36:06.464Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-40352","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40352","licence":"Public domain","modified":"2026-10-26T21:10:00.170Z"}],"updatedAt":"2026-11-25T22:59:18.973Z","epss":{"score":0.00387,"percentile":0.34948,"date":"2026-12-01T12:00:22.000Z"}}