CVE-2026-133250
JSON

9.1critical

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

Severity
9.1critical CVSS:3.1 by openjs
Exploit likelihood
0.74% (higher than 55% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
openjs

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.

Affected

Product or packageVersionsReported by
@fastify/middie @fastify/middiebefore 9.3.8
Not affected: 9.3.8
CVE List

Classification

CWE-288CWE-436

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-133250 changed 2026-11-23CVE Terms of Use
NVDCVE-2026-133250 changed 2026-11-23Public domain