<?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-40879 — CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/tags/cve-2026-40879/</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>Wed, 22 Apr 2026 12:00:00 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/tags/cve-2026-40879/feed.xml" rel="self" type="application/rss+xml"/><item><title>NestJS Uncontrolled Recursion Denial-of-Service Vulnerability (CVE-2026-40879)</title><link>https://feed.craftedsignal.io/briefs/2026-04-nest-recursion-dos/</link><pubDate>Wed, 22 Apr 2026 12:00:00 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-04-nest-recursion-dos/</guid><description>NestJS versions before 11.1.19 are susceptible to an uncontrolled recursion vulnerability (CVE-2026-40879) where sending many small JSON messages in a single TCP frame triggers a call stack overflow, resulting in a denial-of-service condition.</description><content:encoded><![CDATA[<p>NestJS, a Node.js framework for server-side applications, is vulnerable to an uncontrolled recursion issue. Prior to version 11.1.19, a malicious actor could exploit CVE-2026-40879 by sending a crafted TCP frame containing numerous small, valid JSON messages to a vulnerable NestJS application. The <code>handleData()</code> function recursively processes each message, causing the buffer to shrink with each call. This bypasses the <code>maxBufferSize</code> limit and leads to a call stack overflow. A payload as small as 47 KB is sufficient to trigger a <code>RangeError</code> and crash the application. This vulnerability allows for a denial-of-service attack. The vulnerability has been patched in NestJS version 11.1.19.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An attacker identifies a NestJS application running a version prior to 11.1.19.</li>
<li>The attacker crafts a TCP packet containing multiple small, valid JSON messages.</li>
<li>The attacker sends the crafted TCP packet to the vulnerable NestJS application.</li>
<li>The NestJS application&rsquo;s <code>handleData()</code> function receives the TCP packet.</li>
<li>The <code>handleData()</code> function recursively processes each JSON message in the packet.</li>
<li>With each recursive call, the buffer shrinks.</li>
<li>The <code>maxBufferSize</code> is never reached because of the stack overflow.</li>
<li>The call stack overflows, leading to a <code>RangeError</code> and application crash, resulting in a denial of service.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation of CVE-2026-40879 leads to a denial-of-service condition. A single attacker can potentially bring down a vulnerable NestJS application with a relatively small payload of approximately 47KB. This can impact businesses relying on the affected NestJS application, leading to service disruptions and potential data loss. The vulnerability affects any application using NestJS versions before 11.1.19, making a large number of applications potentially vulnerable.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Upgrade all NestJS applications to version 11.1.19 or later to patch CVE-2026-40879.</li>
<li>Deploy the Sigma rule <code>Detect Suspicious NestJS TCP Payload</code> to identify potentially malicious TCP traffic targeting NestJS applications.</li>
<li>Monitor network traffic for large TCP packets containing many small JSON messages, which may indicate an attempted exploit.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>denial-of-service</category><category>nestjs</category><category>recursion</category><category>cve-2026-40879</category><category>linux</category></item></channel></rss>