@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.
Advisories

No advisories yet.

Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

History

Sat, 21 Nov 2026 22:15:00 +0000

Type Values Removed Values Added
First Time appeared Fastify
Fastify fastify/middie
Vendors & Products Fastify
Fastify fastify/middie

Sat, 21 Nov 2026 17:00:00 +0000

Type Values Removed Values Added
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.
Title @fastify/middie vulnerable to path-scoped middleware bypass via request path matching mismatches
Weaknesses CWE-288
CWE-436
References
Metrics cvssV3_1

{'score': 9.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N'}


Projects

Sign in to view the affected projects.

cve-icon MITRE

Status: PUBLISHED

Assigner: openjs

Published:

Updated: 2026-11-21T16:46:44.649Z

Reserved: 2026-11-19T15:42:31.528Z

Link: CVE-2026-133250

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-11-21T17:16:40.293

Modified: 2026-11-21T17:16:40.293

Link: CVE-2026-133250

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-21T22:00:09Z

Weaknesses