<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>CVE-2026-40351 — CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/tags/cve-2026-40351/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata — refreshed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Sat, 18 Apr 2026 12:00:00 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/tags/cve-2026-40351/feed.xml" rel="self" type="application/rss+xml"/><item><title>FastGPT NoSQL Injection Vulnerability (CVE-2026-40351)</title><link>https://feed.craftedsignal.io/briefs/2026-04-fastgpt-nosql-injection/</link><pubDate>Sat, 18 Apr 2026 12:00:00 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-04-fastgpt-nosql-injection/</guid><description>FastGPT versions before 4.14.9.5 are vulnerable to NoSQL injection, allowing unauthenticated attackers to bypass authentication and gain administrative access.</description><content:encoded><![CDATA[<p>FastGPT is an AI Agent building platform. Versions prior to 4.14.9.5 are susceptible to a critical NoSQL injection vulnerability (CVE-2026-40351) affecting the password-based login endpoint. The vulnerability stems from the use of TypeScript type assertion without runtime validation, enabling unauthenticated attackers to inject MongoDB query operators within the password field. This bypasses the intended password check, granting the attacker the ability to authenticate as any user, including the root administrator. Successful exploitation leads to complete control over the FastGPT instance and its associated data. This vulnerability was addressed in FastGPT version 4.14.9.5. All users of FastGPT versions prior to 4.14.9.5 are vulnerable to this attack.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An unauthenticated attacker identifies a vulnerable FastGPT instance running a version prior to 4.14.9.5.</li>
<li>The attacker crafts a malicious HTTP POST request to the password-based login endpoint.</li>
<li>Within the POST request body, the attacker places a MongoDB query operator object (e.g., <code>{&quot;$ne&quot;: &quot;&quot;}</code>) in the password field, bypassing the standard password check.</li>
<li>The vulnerable FastGPT application processes the malicious request without proper validation.</li>
<li>The MongoDB query operator is executed, bypassing the authentication mechanism.</li>
<li>The attacker is granted unauthorized access to the FastGPT application, assuming the identity of an arbitrary user, including the root administrator.</li>
<li>The attacker leverages their administrative privileges to access sensitive data, modify configurations, or perform other malicious actions within the FastGPT instance.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation of CVE-2026-40351 allows an unauthenticated attacker to gain complete control over a FastGPT instance. This can lead to unauthorized access to sensitive AI agent configurations, user data, and other critical information. The impact includes data breaches, service disruption, and potential compromise of downstream systems that rely on the FastGPT platform. Given the critical nature of AI agent building platforms, the compromise of a FastGPT instance can have far-reaching consequences.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Immediately upgrade all FastGPT instances to version 4.14.9.5 or later to patch CVE-2026-40351.</li>
<li>Deploy the Sigma rule <code>Detect FastGPT NoSQL Injection Attempt</code> to identify potential exploitation attempts targeting the login endpoint.</li>
<li>Monitor web server logs for unusual POST requests to the login endpoint, specifically looking for MongoDB query operators within the password field as detected by rule <code>Detect FastGPT NoSQL Injection Attempt</code>.</li>
<li>Review and restrict network access to the FastGPT instance to only authorized users and systems to minimize the attack surface.</li>
</ul>
]]></content:encoded><category domain="severity">critical</category><category domain="type">advisory</category><category>NoSQL injection</category><category>authentication bypass</category><category>CVE-2026-40351</category><category>FastGPT</category></item></channel></rss>