Skip to main content

Fastgpt EUVDEUVD-2026-23559

| CVE-2026-40352 HIGH
Improper Neutralization of Special Elements in Data Query Logic (CWE-943)
2026-04-17 GitHub_M
8.8
CVSS 3.1 · GitHub Advisory
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain low-privilege credentials
  2. Delivery
    Authenticate to FastGPT
  3. Exploit
    Send password change request with NoSQL operator in old password field
  4. Execution
    Bypass verification logic
  5. Persist
    Update password to attacker-controlled value
  6. Impact
    Establish persistent account control

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Query language parameterization
Exploitation Conditions

Exploitation requires the attacker to possess valid low-privileged credentials (PR:L) for any account on the FastGPT instance-this is NOT exploitable by unauthenticated attackers. The vulnerability exists in default configurations of affected versions (prior to 4.14.9.5) with no special feature enablement required. The attacker must have network access to the password change API endpoint (AV:N) and understanding of MongoDB query operator syntax, though this is publicly documented knowledge. No user interaction is required (UI:N). What LIMITS exploitation: initial authentication barrier means attackers need existing credentials from credential stuffing, phishing, previous breach, or another vulnerability. The attack cannot be launched remotely without first compromising at least one low-privilege account. Organizations with strong credential hygiene, MFA enforcement, and no prior account compromises face significantly lower practical risk despite the high CVSS score.

Impact

The CVSS score of 8.8 (High) reflects network-based attack vector with low complexity, but requires low-privileged authentication (AV:N/AC:L/PR:L/UI:N). Real-world risk is elevated because the vulnerability enables persistence and privilege escalation from any compromised low-privilege account. The attack is automatable once an attacker has initial credentials (phishing, credential stuffing, or session hijacking), making lateral movement trivial. Not currently listed in CISA KEV, indicating no confirmed widespread exploitation. EPSS data not provided, but NoSQL injection techniques are well-known and easily exploitable once an attacker has authenticated access. The technical impact is complete account control (C:H/I:H/A:H), allowing data exfiltration, system manipulation, and denial of service. Primary risk factor: this converts any low-privilege compromise into full account takeover with persistence, particularly dangerous in multi-tenant AI platforms handling sensitive prompts and data. The fix is available (v4.14.9.5), significantly reducing risk for patched systems, but unpatched instances remain highly vulnerable to authenticated attackers.

Exploit ScenarioDerived

An attacker obtains low-privileged credentials to a FastGPT instance through phishing or credential reuse. Instead of submitting their actual current password to the password change endpoint, they inject a MongoDB query operator payload like {"$ne": null} in the old password field. The vulnerable endpoint passes this object directly into the MongoDB query, causing the password verification logic to evaluate as true regardless of the actual stored password. The attacker successfully changes the password to a value they control, locking out the legitimate user and maintaining persistent access even if the original credentials are revoked. If combined with user ID manipulation in the same request, the attacker could potentially change passwords for other users including administrators.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 17, 2026

NoSQL injection in FastGPT versions before 4.14.9.5 allows authenticated attackers to bypass password verification on the password change endpoint using MongoDB query operators. Low-privileged users can change their own password (or potentially others' passwords via ID manipulation) without knowing the current password, enabling full account takeover and persistent access. Fixed in version 4.14.9.5. No active exploitation confirmed (not in CISA KEV), and no public exploit code identified at time of analysis, though the attack technique is well-documented for NoSQL injection vectors.

RemediationAI

Upgrade immediately to FastGPT version 4.14.9.5 or later, available at https://github.com/labring/FastGPT/releases/tag/v4.14.9.5. The fix commit (https://github.com/labring/FastGPT/commit/bd966d479fbe414d02679cf79f9eaaab3d100a2d) implements proper input sanitization for the password change endpoint. If immediate patching is not feasible, implement compensating controls: (1) Deploy a Web Application Firewall (WAF) with rules to block MongoDB operator characters ($ne, $gt, $regex, etc.) in password change requests, though this may cause false positives if legitimate passwords contain dollar signs; (2) Enable multi-factor authentication (MFA) for all accounts to raise the barrier for initial account compromise, reducing the pool of attackers who could exploit this after gaining low-privilege access; (3) Implement aggressive session timeout policies (under 15 minutes) and monitor for multiple password change attempts from the same session, though determined attackers can still exploit within this window. Review authentication logs for anomalous password change events prior to patching, particularly changes that succeeded without corresponding failed login attempts (possible indicator of exploitation). Note that workarounds only reduce risk-upgrade to 4.14.9.5 is the only complete remediation.

Affected VersionsENISA

FastGPT < 4.14.9.5

Affected Packages

euvd fastgpt fix: 4.14.9.5

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

FastGPT is an AI Agent building platform (cpe:2.3:a:labring:fastgpt) that uses MongoDB as its backend database. The vulnerability stems from improper neutralization of special elements in an OS command (CWE-943: Improper Neutralization of Special Elements in Data Query Logic). The password change endpoint fails to sanitize user input when validating the old password field, allowing attackers to inject MongoDB query operators like $ne (not equal) or $gt (greater than) directly into the database query. Instead of comparing the submitted password string against the stored hash, the injected operator modifies the query logic itself, causing the verification check to always return true. This is a classic NoSQL injection pattern where object-based query languages (unlike parameterized SQL) can be manipulated by passing JSON objects containing operator keys rather than string values.

Know when Fastgpt gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

GitHub Advisory PRIMARY 8.8 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Primary rating from GitHub Advisory · only source for this CVE.

CVSS VectorGitHub Advisory

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

3
Patch released
Apr 27, 2026 - 19:39 nvd
Patch available
Patch available
Apr 17, 2026 - 22:16 EUVD
CVE Published
Apr 17, 2026 - 21:09 nvd
HIGH 8.8

DescriptionGitHub Advisory

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.

Executive ViewAI

Why It Matters

FastGPT versions before 4.14.9.5 contain a NoSQL injection vulnerability in the password change endpoint that allows authenticated users to bypass password verification, resulting in unauthorized account takeover and persistent unauthorized access. Organizations running affected FastGPT deployments face immediate risk of credential compromise affecting any user account, particularly those with administrative privileges.

Business Impact: High
Compensating Controls

Vendor-released patch: FastGPT version 4.14.9.5 and later. If immediate patching is not feasible: restrict network access to the password change endpoint (/api/*/user/password or equivalent) to administrative IP ranges only; implement API rate limiting on password change requests; enforce MFA on all user accounts as a secondary control; monitor authentication logs for anomalous password change patterns or requests from unusual locations.

Threat Intelligence Overview

EPSS Score
0.0%
Top 92% exploitable
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

NoSQL injection exploits databases that don't use traditional SQL syntax-like MongoDB, CouchDB, or Redis-by manipulating queries through unsanitized user input.

CVE-2025-52552 MEDIUM POC
6.1 Jun 21

FastGPT is an AI Agent building platform. Prior to version 4.9.12, the LastRoute Parameter on login page is vulnerable t

CVE-2026-34162 CRITICAL
10.0 Mar 31

Unauthenticated HTTP proxy abuse in FastGPT (AI Agent platform) prior to v4.14.9.5 allows remote attackers to relay arbi

CVE-2026-42302 CRITICAL
9.8 May 08

Remote code execution in FastGPT's agent-sandbox component (versions 4.14.10 through 4.14.12) lets any network-adjacent,

CVE-2026-40351 CRITICAL
9.8 Apr 17

NoSQL injection in FastGPT <4.14.9.5 password authentication allows unauthenticated remote attackers to bypass login con

CVE-2026-68929 CRITICAL
9.3 Aug 27

Channel hijack and denial of service in FastGPT (labring/FastGPT) before 4.15.2 lets an unauthenticated remote attacker

CVE-2026-50562 CRITICAL
9.3 Jul 15

GitHub Actions artifact-poisoning (pwn request) in labring/FastGPT allows an external attacker who opens a pull request

CVE-2026-33075 HIGH
8.8 Mar 20

FastGPT versions 4.14.8.3 and below contain a critical arbitrary code execution vulnerability in the fastgpt-preview-ima

CVE-2026-61684 HIGH
8.8 Jul 15

Authentication bypass in FastGPT 4.15.0-beta4 lets unauthenticated remote attackers forge JWTs and access internal plugi

CVE-2026-55418 HIGH
8.6 Jul 07

Cross-tenant file disclosure in FastGPT prior to v4.15.0-beta5 allows an attacker to read another team's stored files by

CVE-2026-54607 HIGH
7.7 Jul 07

Server-side request forgery in FastGPT before 4.15.0-beta4 lets an authenticated team member abuse the HTTP-tool OpenAPI

CVE-2026-44285 HIGH
7.7 May 29

Server-Side Request Forgery in Labring FastGPT prior to 4.15.0-beta1 lets an authenticated attacker bypass the platform'

CVE-2026-42345 HIGH
7.7 May 08

Server-side request forgery in FastGPT (labring) versions 4.14.11 and prior lets a low-privileged user coerce the server

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy