sadrobot

← Back to the monthly list

CVE-2026-133250 @fastify/middie · @fastify/middie

9.1 Critical

AI summary

In @fastify/middie up to 9.3.7, middleware path matching can disagree with Fastify's router (empty parameters, targets without leading slash, percent characters in mount paths), causing protective middleware to be skipped. Unauthenticated remote attackers can reach protected handlers. Critical (CVSS 9.1); upgrade to 9.3.8 or later.

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.

Published
2026-11-21 17:16 UTC
Modified
2026-11-23 21:16 UTC
CVSS
9.1 Critical CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
EPSS
0.52% (percentile 37)
ENISA EUVD
EUVD-2026-132188
CISA SSVC
Exploitation: none · Automatable: yes · Technical impact: total
CWE
CWE-288
Category
Edge device (VPN, firewall, router)

CVSS vector

Attack vector
network
Attack complexity
low
Privileges required
none
User interaction
none
Scope
unchanged
Confidentiality
high
Integrity
high
Availability
none

References