CVE-2026-133250 @fastify/middie vulnerable to path-scoped middleware bypass via request path matching mismatches

Critical 9.1 Published Updated

Unauthenticated clients can bypass path-scoped Fastify middleware protections via path-matching mismatches, reaching protected handlers.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Harmful if only installed
No
Needs a specific call
Yes
Fix
None listed

What is CVE-2026-133250?

CVE-2026-133250 is a critical authentication bypass vulnerability in @fastify/middie, published on 21 Nov 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

@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, so an unauthenticated client reaches a handler that an authentication, authorization, or rate-limiting middleware was meant to protect, with no special configuration required. 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. The issue is fixed in @fastify/middie 9.3.8, and users should upgrade to 9.3.8 or later.

Weakness: CWE-436, CWE-288

Which versions are affected by CVE-2026-133250?

1 open source package ship an affected version, including %40fastify/middie.

An affected version is only exploitable if your software uses the vulnerable function or option. Many projects that include it are not exposed.

PackageAffectedFixed in
%40fastify/middie npm
pkg:npm/%40fastify/middie
All versions9.3.8

How do I fix CVE-2026-133250?

Upgrade each affected package to the fixed version listed for it above. Each package has its own fixed versions.

Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.

Is CVE-2026-133250 being exploited?

There is no known exploitation of CVE-2026-133250 in the wild and no public exploit code.

Sources

Also known as GHSA-gcf6-j9m3-p97x.

Is CVE-2026-133250 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free