<?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>Undici (Versions 7.0.0 Through 7.27.x) - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/products/undici-versions-7.0.0-through-7.27.x/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata. Fed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Fri, 19 Jun 2026 14:26:21 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/products/undici-versions-7.0.0-through-7.27.x/feed.xml" rel="self" type="application/rss+xml"/><item><title>undici WebSocket Client Vulnerable to Denial of Service (CVE-2026-12151)</title><link>https://feed.craftedsignal.io/briefs/2026-06-undici-websocket-dos/</link><pubDate>Fri, 19 Jun 2026 14:26:21 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-06-undici-websocket-dos/</guid><description>The `undici` WebSocket client is vulnerable to CVE-2026-12151, a high-severity denial of service attack where a malicious WebSocket server can stream numerous small continuation frames that bypass `maxPayloadSize` checks, causing unbounded memory growth and exhaustion in affected client processes.</description><content:encoded><![CDATA[<p>The <code>undici</code> WebSocket client, used in various Node.js applications, has been identified with a high-severity denial of service vulnerability, CVE-2026-12151, which affects all versions prior to <code>6.27.0</code>, <code>7.0.0</code> through <code>7.27.x</code>, and <code>8.0.0</code> through <code>8.4.x</code>. This flaw, published on June 19, 2026, allows a malicious WebSocket server to exploit an improper validation logic where the <code>maxPayloadSize</code> is enforced on the cumulative byte count of fragments but not on the total number of fragments. Attackers can stream many small or empty continuation frames that individually pass size checks but collectively lead to uncontrolled memory allocation within the client. This results in memory exhaustion and a denial of service for any <code>undici</code>-dependent application acting as a WebSocket client and connecting to an attacker-controlled endpoint. Defenders should prioritize patching to prevent application instability and crashes.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An attacker operates a specially crafted, malicious WebSocket server designed to exploit <code>CVE-2026-12151</code>.</li>
<li>A vulnerable <code>undici</code> WebSocket client, integrated into a target application, is induced to establish a connection to the attacker's server (e.g., through a malicious link, compromised third-party service, or supply chain injection).</li>
<li>Upon successful connection, the malicious server sends an initial, valid WebSocket message fragment to maintain an active session.</li>
<li>The server then begins to continuously stream a large quantity of very small or entirely empty WebSocket continuation frames to the connected <code>undici</code> client.</li>
<li>The <code>undici</code> client's internal <code>maxPayloadSize</code> validation logic, which checks the cumulative byte count, passes for each individual small or empty frame.</li>
<li>Despite passing individual frame size checks, the client's memory buffer, responsible for reassembling the fragmented message, grows without bound due to the lack of a limit on the number of fragments.</li>
<li>The vulnerable <code>undici</code> client process rapidly consumes available system memory, leading to an out-of-memory (OOM) condition on the host system.</li>
<li>The operating system (Windows, Linux, or macOS) terminates the <code>undici</code> client process or the entire application due to memory exhaustion, resulting in a denial of service.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>The successful exploitation of CVE-2026-12151 leads directly to a denial of service for applications utilizing the vulnerable <code>undici</code> WebSocket client. Affected systems will experience rapid, unbounded memory growth, culminating in the termination of the client process or the entire application by the operating system due to out-of-memory conditions. This can cause significant operational disruption, service unavailability, and potential data loss for critical services that rely on <code>undici</code> for WebSocket communication. While specific victim counts are not available, any Node.js application using <code>undici</code> for WebSocket client functionality, especially those connecting to external or untrusted endpoints, is susceptible to this severe impact.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Upgrade the <code>undici</code> package in all affected Node.js applications immediately to a patched version (v6.27.0, v7.28.0, or v8.5.0) as referenced in the GHSA advisory.</li>
<li>Deploy the Sigma rules in this brief to your SIEM/EDR to detect Node.js application crashes or abnormal terminations that could indicate successful exploitation of CVE-2026-12151.</li>
<li>Enable application-level logging for Node.js processes, specifically capturing errors related to memory allocation failures or unexpected process exits, to activate the rules above.</li>
<li>Review network egress policies for applications using the <code>undici</code> WebSocket client to ensure they only connect to trusted and necessary WebSocket endpoints, reducing exposure to malicious servers.</li>
</ul>
]]></content:encoded><category domain="severity">medium</category><category domain="type">advisory</category><category>denial-of-service</category><category>vulnerability</category><category>javascript</category><category>npm</category><category>nodejs</category></item></channel></rss>