Summary
CVE-2026-133250 is a path-scoped middleware bypass in @fastify/middie, the middleware engine for the Fastify web framework. It was published to NVD on November 21, 2026 with a CVSS score of 9.1.
Details
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 request can reach a route while the middleware scoped to that path does not run. If the middleware enforces authentication or authorization, an unauthenticated attacker can bypass it.
| Item | Detail |
|---|---|
| CVE | CVE-2026-133250 |
| CVSS | 9.1 (critical) |
| Package | @fastify/middie |
| Affected | 9.3.7 and earlier |
| Fixed | 9.3.8 |
| Exploitation | Not confirmed in the sources reviewed |
This is a separate package from @fastify/express, which had five similar bypasses fixed in 4.0.10: CVE-2026-124626, CVE-2026-129504, CVE-2026-133120, CVE-2026-133867 and CVE-2026-129850. Apps that use both packages should update both.
Recommended actions
- Upgrade with
npm install @fastify/middie@^9.3.8. Apps using both packages can runnpm install @fastify/express@^4.0.10 @fastify/middie@^9.3.8. - Check whether any Fastify app mounts auth or access-control middleware on a path via middie.
- Add checks in route handlers or Fastify hooks so protection does not depend on path-scoped middleware alone.