Case-Insensitive Routing Issue in Fastify Express Plugin by Fastify
CVE-2026-135280
What is CVE-2026-135280?
The @fastify/express plugin allows the integration of Express middleware within the Fastify framework. Versions prior to 4.0.14 may experience vulnerabilities when case-insensitive routing is enabled. Specifically, certain middleware might not execute as intended if the defined mounting path contains Unicode characters or when using case-sensitive matchers. This can lead to situations where authentication and other crucial middleware controls are inadvertently bypassed, leaving the application vulnerable. To mitigate this issue, it is recommended to update to version 4.0.14 or later, employ stricter control using Fastify hooks such as preHandler, and avoid using Unicode characters in mount paths.
Affected Version(s)
@fastify/express 0 < 4.0.14
@fastify/express 4.0.14
