Live threats

All CVEs / @fastify/middie

CVE-2026-133250@fastify/middie

Security middleware bypass in @fastify/middie

Critical 9.1 No auth needed

Priority
75
CVSS 3.1
9.1
EPSS
—
Auth required
No
Published
Nov 21, 2026
Updated
Nov 23, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-288, CWE-436
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

What happens

@fastify/middie versions up to 9.3.7 have a path interpretation mismatch that allows requests to bypass authentication, authorization, or rate-limiting middleware. An unauthenticated attacker can reach protected handlers by exploiting empty parameters, wildcard values, or literal percent characters in mount paths.

Show the original NVD text

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

Source text, unmodified. NVD.

What to do

Patch available · fixed versions: 9.3.8

Update @fastify/middie to version 9.3.8 or later.

Vendor advisory · github.com ↗

  1. Apply the vendor's security update for @fastify/middie.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official sources

References

Links published by the sources. Open them with care.