Path-Matching Vulnerability in Fastify/Express Plugin by Fastify
CVE-2026-6556

9.1CRITICAL

Key Information:

Vendor
CVE Published:
30 June 2026

What is CVE-2026-6556?

The @fastify/express plugin exhibits a vulnerability whereby middleware attached to non-string mount paths, such as arrays or regular expressions, does not receive the appropriate prefix in prefixed plugin scopes. This can lead to critical bypass scenarios for authentication, authorization, and rate limiting, allowing attackers to access protected routes without executing the necessary middleware checks. Users are advised to upgrade to version 4.0.7 or modify their mount paths to ensure they are strings to mitigate this risk.

Affected Version(s)

@fastify/express 0 < 4.0.7

@fastify/express 4.0.7

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

Jvr2022
UlisesGascon
.