Middleware Access Control Bypass in @fastify/express Plugin
CVE-2026-135264

7.4HIGH

Key Information:

Vendor
CVE Published:
26 November 2026

What is CVE-2026-135264?

The @fastify/express plugin, which integrates Express middleware into the Fastify framework, has a flaw in how it handles nested mount paths. In versions ranging from 4.0.7 up to 4.0.13, nested paths are not processed correctly, leading to potential bypass of authentication and access controls. This flaw arises because the plugin only adjusts the top level of mount path arrays, leaving inner nested paths unaltered. Consequently, attackers might exploit this issue through crafted requests to access restricted routes without proper authentication. Users should upgrade to @fastify/express version 4.0.14 or later to mitigate this risk effectively. As an additional precaution, it is recommended to flatten mount path arrays before passing them to the plugin and to implement access control checks in Fastify hooks.

Affected Version(s)

@fastify/express 4.0.7 < 4.0.14

@fastify/express 4.0.14

References

CVSS V3.1

Score:
7.4
Severity:
HIGH
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
High
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

mcollina
UlisesGascon
.