<?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>Http4s - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/vendors/http4s/</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, 24 Jul 2026 22:35:42 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/vendors/http4s/feed.xml" rel="self" type="application/rss+xml"/><item><title>Unbounded WebSocket Message Aggregation Leads to Denial of Service in http4s-blaze-server</title><link>https://feed.craftedsignal.io/briefs/2026-07-unbounded-websocket-dos-http4s-blaze/</link><pubDate>Fri, 24 Jul 2026 22:35:42 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-07-unbounded-websocket-dos-http4s-blaze/</guid><description>A vulnerability in `http4s-blaze-server` allows an attacker to cause a denial of service by exploiting unbounded WebSocket message aggregation, enabling an attacker to drive unbounded heap growth in the server's JVM by sending an unterminated fragmented WebSocket message, leading to an `OutOfMemoryError` and server termination, affecting any http4s application serving WebSocket routes over `BlazeServerBuilder` and triggerable by unauthenticated or authenticated clients.</description><content:encoded><![CDATA[<p>A critical vulnerability exists in <code>http4s-blaze-server</code> versions prior to 0.23.18 and within versions 1.0.0-M1 to 1.0.0-M41, stemming from unbounded WebSocket message aggregation. Attackers can exploit this by establishing a WebSocket connection and sending fragmented messages without setting the final (FIN) bit. The server, particularly when using <code>BlazeServerBuilder</code>, buffers these fragments without any size limit, irrespective of the <code>maxWebSocketBufferSize</code> setting which only applies to individual frames. This leads to continuous and uncontrolled heap memory growth in the server's Java Virtual Machine (JVM). Ultimately, this resource exhaustion results in an <code>OutOfMemoryError</code> and the termination of the JVM process, effectively causing a Denial of Service (DoS) for the affected http4s application. Both unauthenticated and authenticated clients can trigger this vulnerability, depending on the WebSocket endpoint's exposure, making it a severe threat to the availability of affected services.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An attacker establishes a WebSocket connection with a vulnerable http4s-blaze-server application.</li>
<li>The attacker sends an initial WebSocket message fragment.</li>
<li>The attacker continues to send a series of subsequent WebSocket message fragments.</li>
<li>These fragments intentionally do not set the <code>FIN</code> (final fragment) bit, indicating an unterminated message.</li>
<li>The <code>http4s-blaze-server</code> buffers all incoming fragments of this unterminated message without an aggregate size limit.</li>
<li>Due to the lack of an aggregate size limit, the server's JVM heap memory grows uncontrollably as fragments accumulate.</li>
<li>The server's JVM encounters an <code>OutOfMemoryError</code> as it exhausts available memory resources.</li>
<li>This <code>OutOfMemoryError</code> leads to the termination of the server JVM, resulting in a Denial of Service for the affected http4s application.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Any http4s application that serves WebSocket routes over <code>BlazeServerBuilder</code> is directly impacted by this vulnerability. Successful exploitation leads to an <code>OutOfMemoryError</code> within the server's JVM, causing it to terminate. This results in complete unavailability of the affected application, leading to a Denial of Service. The <code>maxWebSocketBufferSize</code> configuration parameter does not mitigate this issue as it only limits individual frame sizes, not the aggregated message size. A single malicious connection can exhaust the server's heap, even with a modest volume of wire bytes if many small fragments are used, amplifying the per-frame object overhead. The attacker can be unauthenticated if the WebSocket endpoint is publicly reachable or an authenticated client if the handshake requires authentication.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Terminate or limit WebSocket traffic at a fronting layer (e.g., a reverse proxy or load balancer) that enforces message-size and fragment count limits, or disable WebSocket routes entirely on affected <code>http4s-blaze-server</code> instances.</li>
<li>Plan migration to a maintained backend (e.g., http4s-ember) as the upstream <code>blaze</code> server is End-of-Life, addressing the root cause in affected <code>http4s-blaze-server</code> versions.</li>
</ul>
]]></content:encoded><category domain="severity">medium</category><category domain="type">advisory</category><category>denial-of-service</category><category>webserver</category><category>jvm</category><category>websocket</category></item><item><title>Multiple HTTP/1.1 Request Smuggling Primitives in Blaze Java Parser</title><link>https://feed.craftedsignal.io/briefs/2026-07-blaze-http-request-smuggling/</link><pubDate>Fri, 24 Jul 2026 22:28:58 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-07-blaze-http-request-smuggling/</guid><description>Five independent HTTP/1.1 conformance laxities in Blaze's Java parser cause request-boundary disagreement with a stricter intermediary proxy, enabling front-end ACL/authentication bypass, response-queue poisoning on pooled backend connections, and cache poisoning in affected `http4s-blaze-server` and `blaze-http` components.</description><content:encoded><![CDATA[<p>Five distinct HTTP/1.1 conformance vulnerabilities have been identified in Blaze's hand-written Java parser, specifically within the <code>http/src/main/java/org/http4s/blaze/http/parser/</code> component. These laxities in parsing HTTP requests can lead to request-boundary disagreement between a strict intermediary proxy and a vulnerable Blaze server, a classic HTTP request smuggling scenario. The issue affects <code>http4s-blaze-server_2.13</code> (versions up to <code>0.23.17</code>), <code>blaze-http_2.13</code> (versions up to <code>0.23.17</code> and from <code>1.0.0-M1</code> to <code>1.0.0-M41</code>), and <code>blaze-http_3</code> (versions up to <code>0.23.17</code> and from <code>1.0.0-M1</code> to <code>1.0.0-M41</code>). These vulnerabilities are reachable via a default <code>BlazeServerBuilder</code> configuration. Attackers can leverage this discrepancy to bypass front-end access controls or authentication, poison response queues on pooled backend connections, and corrupt web caches, impacting the integrity and security of web applications. The primary risk lies in deployments using lenient or legacy intermediary proxies that do not strictly conform to RFC HTTP/1.1 parsing rules.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An attacker crafts a single HTTP/1.1 request containing ambiguous <code>Content-Length</code> or <code>Transfer-Encoding</code> headers, or other conformance violations, designed to be interpreted differently by an intermediary proxy and the vulnerable Blaze server.</li>
<li>The attacker sends this specially crafted, malformed request to the fronting proxy of the target web application.</li>
<li>The intermediary proxy, being RFC-strict, processes the initial part of the request, sanitizes or re-serializes it according to its own parsing rules, and forwards what it believes to be a complete, valid request to the backend Blaze server.</li>
<li>The vulnerable Blaze server, due to its parsing laxities, interprets the forwarded request differently from the proxy, potentially seeing a second, embedded request where the proxy only saw data for the first.</li>
<li>The Blaze server processes this &quot;smuggled&quot; second request, which could contain unauthorized commands or access to restricted resources.</li>
<li>This discrepancy leads to various outcomes, such as bypassing authentication, accessing internal resources, poisoning caches, or manipulating subsequent requests in the proxy's queue, ultimately achieving the attacker's objective.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>The actual exploitability of these vulnerabilities depends heavily on the fronting proxy's behavior, requiring a specific disagreement between the proxy's and the Blaze server's HTTP/1.1 parsers. If the proxy forwards malformed bytes that the Blaze server interprets differently, the consequences include bypassing front-end access control lists (ACLs) or authentication mechanisms, leading to unauthorized access. Attackers can also achieve response-queue poisoning on pooled backend connections, potentially serving malicious content or responses to other users. Additionally, web caches can be poisoned, leading to a denial-of-service or content manipulation. Risk is concentrated on systems using lenient or legacy intermediary proxies that do not strictly enforce HTTP/1.1 RFC compliance.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Upgrade <code>http4s-blaze-server</code> and <code>blaze-http</code> components to patched versions that address these HTTP/1.1 parsing vulnerabilities immediately.</li>
<li>Deploy affected applications behind an RFC-strict reverse proxy (such as nginx, HAProxy, Envoy, or AWS Application Load Balancer) that explicitly rejects or re-serializes malformed requests at the edge, mitigating the parsing discrepancies before they reach the vulnerable server.</li>
<li>Monitor web server logs and network traffic for anomalous HTTP request patterns, such as duplicate or malformed <code>Content-Length</code> or <code>Transfer-Encoding</code> headers, which could indicate request smuggling attempts.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>request-smuggling</category><category>http/1.1</category><category>java</category><category>vulnerability</category></item></channel></rss>