<?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-33808 - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/tags/cve-2026-33808/</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>Thu, 29 Feb 2024 10:00:00 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/tags/cve-2026-33808/feed.xml" rel="self" type="application/rss+xml"/><item><title>@fastify/express Authentication Bypass via URL Normalization Gaps</title><link>https://feed.craftedsignal.io/briefs/2024-02-fastify-express-auth-bypass/</link><pubDate>Thu, 29 Feb 2024 10:00:00 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2024-02-fastify-express-auth-bypass/</guid><description>A vulnerability exists in `@fastify/express` v4.0.4 that allows complete bypass of path-scoped authentication middleware via URL normalization gaps, specifically through duplicate slashes and semicolon delimiters, leading to unauthorized access to protected routes.</description><content:encoded><![CDATA[<p>A critical vulnerability exists in <code>@fastify/express</code> version 4.0.4 related to URL normalization. When Fastify router normalization options (<code>ignoreDuplicateSlashes</code> or <code>useSemicolonDelimiter</code>) are enabled, the <code>@fastify/express</code> module fails to properly normalize URLs before passing them to Express middleware. This discrepancy allows attackers to bypass authentication and authorization checks implemented in Express middleware. The vulnerability stems from the <code>enhanceRequest</code> function in <code>index.js</code>, which doesn't normalize duplicate slashes or strip semicolon-delimited parameters, leading to a mismatch between Fastify's route matching and Express's middleware handling. This issue is distinct from CVE-2026-22037, which addressed percent-encoding bypass. Successful exploitation grants unauthenticated access to protected resources, impacting applications that rely on Express middleware for security.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An attacker identifies a protected route, such as <code>/admin/dashboard</code>, that is secured by Express middleware within a Fastify application using <code>@fastify/express</code>.</li>
<li>The attacker crafts a malicious URL containing either duplicate slashes (e.g., <code>//admin/dashboard</code>) or semicolon delimiters (e.g., <code>/admin;bypass</code>).</li>
<li>The attacker sends an HTTP request to the target server using the crafted malicious URL.</li>
<li>Fastify's router, configured with <code>ignoreDuplicateSlashes: true</code> or <code>useSemicolonDelimiter: true</code>, normalizes the URL for route matching.</li>
<li><code>@fastify/express</code>'s <code>enhanceRequest</code> function passes the original, un-normalized URL to the Express middleware.</li>
<li>The Express middleware, expecting the normalized URL (e.g., <code>/admin/dashboard</code>), fails to match the malicious URL (e.g., <code>//admin/dashboard</code> or <code>/admin;bypass</code>).</li>
<li>The authentication/authorization checks in the Express middleware are bypassed.</li>
<li>The Fastify route handler executes, granting the attacker unauthorized access to the protected resource, potentially leading to data breaches or other malicious activities.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>This vulnerability allows for complete authentication bypass in applications that utilize Express middleware for path-based access control and are built on <code>@fastify/express</code>. Successful exploitation leads to unauthorized access to protected resources like admin panels, APIs, and sensitive user data. The duplicate slash vector impacts applications with <code>ignoreDuplicateSlashes: true</code>, while the semicolon vector affects those with <code>useSemicolonDelimiter: true</code>. This bypass affects all Express middleware using prefix path matching, including popular authentication, authorization, and rate-limiting packages. The root cause lies in the unexpected behavior of <code>@fastify/express</code> and its interaction with Fastify's router options, potentially affecting a large number of applications.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Deploy the Sigma rule <code>Detect Fastify Express Double Slash Authentication Bypass</code> to detect attempts to exploit the duplicate slash vulnerability via web server logs.</li>
<li>Deploy the Sigma rule <code>Detect Fastify Express Semicolon Authentication Bypass</code> to detect attempts to exploit the semicolon delimiter vulnerability via web server logs.</li>
<li>Upgrade to a patched version of <code>@fastify/express</code> when available. This should include URL normalization before passing to Express middleware as suggested in the advisory.</li>
<li>Review Fastify configurations to understand if <code>ignoreDuplicateSlashes: true</code> or <code>useSemicolonDelimiter: true</code> are actively used and assess the impact of disabling them until a patch is applied.</li>
</ul>
]]></content:encoded><category domain="severity">critical</category><category domain="type">advisory</category><category>fastify</category><category>express</category><category>authentication-bypass</category><category>url-normalization</category><category>cve-2026-33808</category></item></channel></rss>