Fastify @fastify/express authentication bypass (CVE-2026-133867)
The @fastify/express package contains a path-matching flaw in versions 4.0.7 through 4.0.9 that allows Express middleware to be silently bypassed when registered with regular-expression routes inside parameterized plugin prefixes, potentially exposing protected routes to unauthenticated clients.
CVE search metadata
CVE search record: CVE-2026-133867. Severity: critical. CVSS: 9.1. KEV: no. Product: @fastify/express. Brief: Fastify @fastify/express authentication bypass (CVE-2026-133867). Brief link: https://feed.craftedsignal.io/briefs/2026-11-fastify-express-auth-bypass-cve-2026-133867/
Triage facts
Revision 1- Applicability
- @fastify/express
- Evidence
- Unknown
- Severity
- Critical
- Sources
- 2 public sources
- Freshness
- Revision 1Nov 21, 21:26 UTC
- Vulnerabilities
- 1 CVE
- Source quality
- A2Roughly even chance
Overview
@fastify/express is a compatibility layer that lets Express middleware run inside the Fastify web framework. 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 inside a plugin registered under a parameterized prefix, the Express matcher treats the prefix parameter as literal text and fails to match the request path.
Attack Chain
No special configuration is required beyond a parameterized prefix and a regular-expression mount. The Express matcher fails to match the route, resulting in the middleware being silently skipped while Fastify still runs the route handler.
Impact
Applications relying on regular-expression mounted middleware for authentication or authorization inside a parameterized-prefix plugin may expose protected routes to unauthenticated clients. This vulnerability is assigned a CVSS v3.1 base score of 9.1 (CRITICAL).
Recommendation
The issue is fixed in @fastify/express 4.0.10. Users should upgrade to 4.0.10 or later.