SECURITYCRITICALCVE-2026-133250

CVE-2026-133250: @fastify/middie Path Mismatch Lets Requests Skip Scoped Middleware (CVSS 9.1)

@fastify/middie 9.3.7 and earlier matches middleware against a path that can differ from Fastify's route, so auth can be skipped. Upgrade to 9.3.8.

Dylan H.

Security Team

November 22, 2026
2 min read
CVE-2026-133250: @fastify/middie Path Mismatch Lets Requests Skip Scoped Middleware (CVSS 9.1)

Critical severity

Rated critical. Prioritise patching — see the remediation guidance below.

Affected Products

  • @fastify/middie 9.3.7 and earlier

Summary

CVE-2026-133250 is a path-scoped middleware bypass in @fastify/middie, the middleware engine for the Fastify web framework. It was published to NVD on November 21, 2026 with a CVSS score of 9.1.

Details

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 request can reach a route while the middleware scoped to that path does not run. If the middleware enforces authentication or authorization, an unauthenticated attacker can bypass it.

ItemDetail
CVECVE-2026-133250
CVSS9.1 (critical)
Package@fastify/middie
Affected9.3.7 and earlier
Fixed9.3.8
ExploitationNot confirmed in the sources reviewed

This is a separate package from @fastify/express, which had five similar bypasses fixed in 4.0.10: CVE-2026-124626, CVE-2026-129504, CVE-2026-133120, CVE-2026-133867 and CVE-2026-129850. Apps that use both packages should update both.

  1. Upgrade with npm install @fastify/middie@^9.3.8. Apps using both packages can run npm install @fastify/express@^4.0.10 @fastify/middie@^9.3.8.
  2. Check whether any Fastify app mounts auth or access-control middleware on a path via middie.
  3. Add checks in route handlers or Fastify hooks so protection does not depend on path-scoped middleware alone.

References