PT-2026-151369
CVE-2026-132133
·
Published
2026-11-19
·
Updated
2026-11-19
Description by
CVSS 3.1
4.8
MediumMetricsAV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
Name of the Vulnerable Software and Affected Versions
@fastify/middie versions prior to 9.3.7
Description
When the
ignoreDuplicateSlashes router option is enabled, the middleware engine fails to collapse duplicate slashes when building the match regular expression for path-scoped middleware. Because the router collapses these slashes in the request path but the middleware match still requires the doubled slash, the middleware is skipped. This can allow requests to bypass critical path-scoped middleware such as authentication, authorization, or rate limiting and reach the protected handler. This typically occurs when a plugin prefix ending with a slash is combined with a mount path starting with one.Recommendations
Upgrade to version 9.3.7 or later.
As a temporary workaround, enforce authorization in a Fastify hook such as
preHandler that runs after routing.
Avoid using mount paths and plugin prefixes that introduce duplicate slashes. Found an issue in the description? Have something to add? Feel free to write us 👾