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%25is decoded twice. - In every release, a request target starting with
*(for exampleGET *admin) is routed to/adminby 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.
| Item | Detail |
|---|---|
| CVE | CVE-2026-133120 |
| Advisory | GHSA-w877-hjcp-88rc |
| CVSS | 9.1 (critical) |
| Package | @fastify/express |
| Affected | All versions before 4.0.10 |
| Fixed | 4.0.10 |
| Exploitation | Not 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.
Recommended actions
- Upgrade with
npm install @fastify/express@^4.0.10. - If you cannot upgrade yet, reject request targets that start with
*or whose path contains a backslash, using anonRequesthook registered before@fastify/express. This covers only the two variants above. - Move critical access checks into route handlers or Fastify hooks rather than path-scoped Express middleware.