Skip to main content

Fastgpt EUVDEUVD-2026-23557

| CVE-2026-40351 CRITICAL
Improper Neutralization of Special Elements in Data Query Logic (CWE-943)
2026-04-17 GitHub_M
9.8
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Identify exposed FastGPT instance
  2. Delivery
    Send HTTP POST to login endpoint
  3. Exploit
    Inject MongoDB operator in password field
  4. Execution
    Bypass authentication logic
  5. Persist
    Receive admin session token
  6. Impact
    Access administrative functions

Vulnerability Assessment

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

No special conditions - remote unauthenticated exploitation against default configurations of FastGPT installations prior to version 4.14.9.5. The password-based login endpoint is enabled by default and typically exposed on standard HTTP/HTTPS ports (80/443) for legitimate user access. Exploitation succeeds against any FastGPT instance where the vulnerable authentication code path is reachable over the network. No user interaction, privileged access, or non-default configuration required. The only limiting factor is network accessibility to the login endpoint - instances behind VPNs, IP allowlists, or private networks have reduced exposure but remain vulnerable to authenticated network users or lateral movement scenarios. CVSS vector PR:N confirms zero authentication requirements.

Impact

Real-world risk is CRITICAL based on multiple converging signals. CVSS 9.8 accurately reflects severity: network-accessible (AV:N), low complexity (AC:L), no privileges required (PR:N), no user interaction (UI:N), and complete system compromise (C:H/I:H/A:H). The attack grants immediate root administrator access, enabling full platform takeover including AI model manipulation, data exfiltration, and service disruption. Exploitation is trivial - a single HTTP POST with crafted JSON bypasses all authentication. While not yet listed in CISA KEV (suggesting no confirmed widespread exploitation campaigns), the GitHub security advisory publicly documents the vulnerability mechanics with sufficient detail for rapid weaponization. FastGPT is an open-source platform likely deployed in enterprise AI/LLM workflows, making exposed instances high-value targets. The combination of maximum CVSS severity, public technical disclosure, trivial exploitation complexity, and administrator-level impact makes this an immediate patching priority. EPSS score unavailable but would likely exceed 60% given public details and high impact. No conflicting signals detected - all indicators align on critical severity.

Exploit ScenarioDerived

An unauthenticated attacker identifies a FastGPT instance exposed on the public internet through Shodan or targeted reconnaissance. They send an HTTP POST request to the password login endpoint with JSON payload containing username 'root' and password field set to {"$ne": ""} instead of a string. The backend MongoDB query evaluates the injected operator, matching any root account with a non-empty password hash, and returns successful authentication. The attacker receives a valid session token granting full administrative access to the FastGPT platform, enabling them to exfiltrate AI training data, modify chatbot behaviors, access integrated systems via stored API credentials, or deploy malicious AI agents. GitHub security advisory GHSA-x8mx-2mr7-h9xg provides sufficient technical detail for exploit development though no public POC is confirmed available.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
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 <4.14.9.5 password authentication allows unauthenticated remote attackers to bypass login controls and access any account, including root administrator, by submitting MongoDB query operators instead of plaintext passwords. The vulnerability stems from missing runtime validation on password fields in the login endpoint. Exploitation requires no special conditions beyond network access to the login endpoint. CVSS 9.8 (Critical) with EPSS data unavailable; no CISA KEV listing or public POC identified at time of analysis, though GitHub security advisory provides technical details that could enable exploit development.

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 implemented in commit bd966d479fbe414d02679cf79f9eaaab3d100a2d adds runtime validation to ensure password fields contain only string primitives before database queries execute. For organizations unable to patch immediately, implement compensating controls: restrict network access to the login endpoint (/api/auth/login or equivalent) to trusted IP ranges only via firewall rules or reverse proxy ACLs - this reduces attack surface but does not eliminate risk from insider threats or compromised trusted networks. Deploy web application firewall (WAF) rules to block HTTP requests containing MongoDB operators like '$ne', '$gt', '$regex' in JSON bodies, though sophisticated attackers may bypass signature-based detection. Monitor authentication logs for unusual patterns like multiple successful logins from single source IPs across different user accounts, or logins without corresponding password change events. These mitigations provide only partial protection; version upgrade remains the definitive 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 open-source AI Agent building platform maintained by Labring. The vulnerability (CWE-943: Improper Neutralization of Special Elements in Data Query Logic) occurs in the password-based authentication mechanism. TypeScript's type system provides compile-time type checking but does not enforce runtime validation. The application accepts user-supplied password input as a TypeScript string type but passes it directly to MongoDB queries without sanitizing or validating the actual runtime value. MongoDB's query operators like '$ne' (not equal), '$gt' (greater than), or '$regex' can be injected as JSON objects in place of expected string values. When the password field contains {"$ne": ""}, the resulting MongoDB query becomes 'password: {$ne: ""}' which evaluates to true for any non-empty password hash in the database, completely bypassing credential verification. This is a classic NoSQL injection pattern where the database query logic itself is manipulated rather than exploiting SQL syntax vulnerabilities.

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

Vendor (GitHub_M) PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Primary rating from Vendor (GitHub_M) · only source for this CVE.

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
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:05 nvd
CRITICAL 9.8

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

FastGPT versions below 4.14.9.5 contain a critical authentication bypass vulnerability in the login mechanism that allows unauthenticated attackers to gain unauthorized access to any user account, including root administrator, without knowing passwords. This directly compromises the confidentiality and integrity of sensitive data and system operations across all deployments, and requires immediate action regardless of patch availability.

Business Impact: Severe
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict network access to FastGPT login endpoints using firewall rules or WAF policies to trusted administrative networks only; (2) Implement real-time monitoring and alerting on login attempts containing MongoDB query operators (e.g., $ne, $gt, $regex); (3) Consider deploying a reverse proxy with input validation to reject payloads containing MongoDB operators in authentication fields; (4) Enforce multi-factor authentication at network perimeter if available; (5) Monitor administrative account activity for anomalous access patterns. These controls do not eliminate risk and should be considered temporary pending vendor patch release.

Threat Intelligence Overview

EPSS Score
0.0%
Top 86% 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 CRITICAL
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
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
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Total

Priority Score

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

Attack Technique

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

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

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-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-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-40352 HIGH
8.8 Apr 17

NoSQL injection in FastGPT versions before 4.14.9.5 allows authenticated attackers to bypass password verification on th

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-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-61644 HIGH
7.7 Jul 15

Cross-tenant data disclosure in FastGPT 4.14.17 through 4.15.0-beta5 lets a low-privileged tenant user read another tena

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'

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