Path Handling Flaw in @fastify/express Affects Middleware Security
CVE-2026-33807

9.1CRITICAL

Key Information:

Vendor

Fastify

Vendor
CVE Published:
15 April 2026

What is CVE-2026-33807?

In @fastify/express versions prior to 4.0.5, a path handling bug exists within the onRegister function. This flaw can lead to a doubling of middleware paths when inherited by child plugins. If a child plugin is registered with a prefix that matches an existing middleware path, this path is mistakenly prefixed again. Consequently, incoming requests fail to match the affected middleware, resulting in a bypass of crucial security controls including authentication, authorization, and rate limiting across all affected child plugin routes. To mitigate this issue, users are advised to upgrade to @fastify/express version 4.0.5 or a later release.

Affected Version(s)

@fastify/express 0 < 4.0.5

@fastify/express 4.0.5

References

CVSS V3.1

Score:
9.1
Severity:
CRITICAL
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

FredKSchott
mcollina
UlisesGascon
climba03003
.