Read the docs

Path-scoped middleware bypass in @fastify/middie via request path mismatch

Priority MEDIUM 48CWE-288Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Security bypass
Confidentiality · integrity · availability
High · High · None
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-288.

Summary

@fastify/middie from 0 before 9.3.8 matches path-scoped middleware against its own reading of the request path, which can differ from the path Fastify's router uses. When the two disagree, a request reaches a handler that a middleware mount was meant to protect while middie skips that middleware, so an unauthenticated remote attacker can bypass authentication, authorization, or rate-limiting middleware (CWE-288). 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.

Written with Claude Haiku 5.5 from the sources below · 2026-11-21

Description from the CNA

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

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.0052 37th percentileScored 2026-11-30
Fix Fixed @fastify/middie (@fastify/middie): 9.3.8

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
Yes
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
fastify@fastify/middiebefore 9.3.89.3.8Patch availableCNA
  • @fastify/middie Vendorfastify Affected before 9.3.8 Fixed in 9.3.8 Patch available CNA

CPE names Threatist (inferred) · 1

Inferred from how NVD named this product before; not given by a source.

CPEVersionsRoleVendor
cpe:2.3:a:fastify:fastify\/middie:*:*:*:*:*:*:*:*——fastify
  • cpe:2.3:a:fastify:fastify\/middie:*:*:*:*:*:*:*:* Versions — — ·fastify

Remediation

Upgrade @fastify/middie to 9.3.8, which fixes this issue. The sources list no fixed version for any other product.

Written with Claude Haiku 5.5 from the sources below · 2026-11-21

  • Fix · CNA @fastify/middie (@fastify/middie) Fixed in 9.3.8

Timeline

  1. 2026-11-21 Threatist record created from CVE-2026-133250
  2. 2026-11-23 CISA SSVC decision points changed
  3. 2026-11-25 EPSS moved to the below the 50th percentile

References

  • TI-2026-26180 @fastify/express vulnerable to middleware authentication bypass via URL normalization… CVSS 4.0CRITICAL 9.1
  • TI-2026-26179 @fastify/express vulnerable to middleware path doubling causing authentication bypass in child plugin scopes CVSS 3.1CRITICAL 9.1
  • TI-2026-26177 @fastify/reply-from vulnerable to connection header abuse enabling stripping of proxy-added headers CVSS 4.0CRITICAL 9.0
  • TI-2026-05498 @fastify/middie vulnerable to middleware authentication bypass in child plugin scopes CVSS 3.1CRITICAL 9.1
  • TI-2023-15307 Cross-site request forgery in npm @fastify/oauth2 CVSS 3.1HIGH 8.8
  • TI-2026-17731 @fastify/express vulnerable to Improper Handling of URL Encoding (Hex Encoding) CVSS 3.1HIGH 8.4
See all 92 →

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences