SECURITYCRITICALCVE-2026-133120

CVE-2026-133120: @fastify/express URL Decoding Mismatch Bypasses Path-Scoped Middleware (CVSS 9.1)

@fastify/express before 4.0.10 gives Express a URL that differs from Fastify's route, so path-scoped middleware can be skipped. Upgrade to 4.0.10.

Dylan H.

Security Team

November 22, 2026
2 min read
CVE-2026-133120: @fastify/express URL Decoding Mismatch Bypasses Path-Scoped Middleware (CVSS 9.1)

Critical severity

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

Affected Products

  • @fastify/express before 4.0.10

Summary

CVE-2026-133120 is a path-scoped middleware bypass in @fastify/express caused by double decoding and normalization mismatches (CWE-174). It was published to NVD on November 21, 2026 with a CVSS score of 9.1.

Details

In versions before 4.0.10, the plugin passes Express a request URL that does not always match the path Fastify's router dispatched. Path-scoped Express middleware can then be skipped while the route handler still runs. Two variants are described:

  • Since 4.0.3, the URL is percent-decoded before Express parses it. A backslash combined with whitespace or # makes Express miss some mounts, and %25 is decoded twice.
  • In every release, a request target starting with * (for example GET *admin) is routed to /admin by Fastify, while Express does not match a mount on /admin.

An unauthenticated attacker can use this to bypass protections such as authentication, authorization or rate limiting.

ItemDetail
CVECVE-2026-133120
AdvisoryGHSA-w877-hjcp-88rc
CVSS9.1 (critical)
Package@fastify/express
AffectedAll versions before 4.0.10
Fixed4.0.10
ExploitationNot confirmed in the sources reviewed

Sibling flaws fixed in the same release: CVE-2026-124626, CVE-2026-129504, CVE-2026-133867 and CVE-2026-129850. See also CVE-2026-133250 for @fastify/middie.

  1. Upgrade with npm install @fastify/express@^4.0.10.
  2. If you cannot upgrade yet, reject request targets that start with * or whose path contains a backslash, using an onRequest hook registered before @fastify/express. This covers only the two variants above.
  3. Move critical access checks into route handlers or Fastify hooks rather than path-scoped Express middleware.

References