Skip to content
Threat Feed
critical advisory

Fastify @fastify/middie path-routing security bypass (CVE-2026-133250)

A path-routing inconsistency in @fastify/middie versions 9.3.7 and earlier allows unauthenticated users to bypass security middleware by exploiting discrepancies between the middleware engine and the Fastify router.

CVE search metadata

CVE search record: CVE-2026-133250. Severity: critical. CVSS: 9.1. KEV: no. Product: @fastify/middie. Brief: Fastify @fastify/middie path-routing security bypass (CVE-2026-133250). Brief link: https://feed.craftedsignal.io/briefs/2026-11-fastify-middie-bypass-cve-2026-133250/

Triage facts

Revision 1
Applicability
@fastify/middie
Evidence
Unknown
Severity
Critical
Sources
2 public sources
Freshness
Revision 1Nov 21, 21:26 UTC
Vulnerabilities
1 CVE
Source quality
A2Roughly even chance

Overview

@fastify/middie is the middleware engine for the Fastify web framework. In versions up to and including 9.3.7, middie matches path-scoped middleware against its own reading of the request path, which can differ from the path Fastify's router uses to dispatch the request. When the two disagree, the router can route a request to a handler covered by a middleware mount while middie skips that middleware.

Attack Chain

The mismatch is triggered by empty parameter or wildcard values, request targets that do not begin with a slash, and literal percent characters in a mount path. This occurs without requiring special configuration.

Impact

An unauthenticated client can reach a handler that an authentication, authorization, or rate-limiting middleware was meant to protect, resulting in a bypass of security controls.

Recommendation

The issue is fixed in @fastify/middie 9.3.8, and users should upgrade to 9.3.8 or later.