Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-40351: CWE-943: Improper Neutralization of Special Elements in Data Query Logic in labring FastGPT

0
Critical
VulnerabilityCVE-2026-40351cvecve-2026-40351cwe-943
Published: Fri Apr 17 2026 (04/17/2026, 21:05:05 UTC)
Source: CVE Database V5
Vendor/Project: labring
Product: FastGPT

Description

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.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/17/2026, 21:53:07 UTC

Technical Analysis

FastGPT, an AI Agent building platform by labring, contained a critical vulnerability (CVE-2026-40351) in its password login endpoint before version 4.14.9.5. The vulnerability arises from improper neutralization of special elements in data query logic (CWE-943). Specifically, the endpoint uses TypeScript type assertion without runtime validation, allowing attackers to inject MongoDB query operators (e.g., {"$ne": ""}) as the password field. This NoSQL injection bypasses authentication, permitting unauthorized login as any user, including root administrator. The vulnerability has been addressed in FastGPT version 4.14.9.5.

Potential Impact

Successful exploitation allows an unauthenticated attacker to bypass password authentication and gain unauthorized access to any user account, including the root administrator. This leads to full system compromise with confidentiality, integrity, and availability impacts rated high (CVSS 9.8).

Mitigation Recommendations

Upgrade FastGPT to version 4.14.9.5 or later, where this vulnerability has been fixed. Since the vendor has released a fixed version, applying this official patch is the recommended remediation. Patch status is not explicitly stated in the vendor advisory but the description confirms the fix in 4.14.9.5. No additional mitigations are specified.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-04-10T22:50:01.359Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 69e2a83ebdfbbecc5994f144

Added to database: 4/17/2026, 9:38:06 PM

Last enriched: 4/17/2026, 9:53:07 PM

Last updated: 4/21/2026, 3:39:48 AM

Views: 19

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses