SECURITYCRITICALCVE-2026-133867

CVE-2026-133867: @fastify/express RegExp Mount Paths Bypass Middleware Under Parameterized Prefixes (CVSS 9.1)

@fastify/express 4.0.7 through 4.0.9 does not rewrite regex mount paths for parameterized prefixes, so middleware can be skipped. Upgrade to 4.0.10.

Dylan H.

Security Team

November 22, 2026
2 min read
CVE-2026-133867: @fastify/express RegExp Mount Paths Bypass Middleware Under Parameterized Prefixes (CVSS 9.1)

Critical severity

Rated critical. Prioritise patching — see the remediation guidance below.

Affected Products

  • @fastify/express 4.0.7 through 4.0.9

Summary

CVE-2026-133867 is a path-scoped middleware bypass in @fastify/express. It was published to NVD on November 21, 2026 with a CVSS score of 9.1.

Details

In versions 4.0.7 through 4.0.9, the plugin does not rewrite regular-expression mount paths to account for a parameterized plugin prefix. When middleware is mounted with a regular expression under such a prefix, requests can reach the route without the middleware running. An unauthenticated attacker can use this to get around authentication, authorization or rate limiting.

ItemDetail
CVECVE-2026-133867
AdvisoryGHSA-84w6-xrf3-f8q8
CVSS9.1 (critical)
Package@fastify/express
Affected4.0.7 through 4.0.9
Fixed4.0.10
ExploitationNot confirmed in the sources reviewed

It is one of five bypasses fixed in 4.0.10, with CVE-2026-124626, CVE-2026-129504, CVE-2026-133120 and CVE-2026-129850. The @fastify/middie package has a related flaw, CVE-2026-133250.

  1. Upgrade with npm install @fastify/express@^4.0.10.
  2. Search your code for @fastify/express registered with a parameterized prefix (for example /tenant/:id) and middleware mounted with a regular expression.
  3. Until patched, enforce access control inside route handlers or Fastify hooks.

References