CVE-2026-2880: @fastify/middie has an improper path normalization vulnerability

Published Feb 27, 2026
·
Updated

Summary A path normalization inconsistency in @fastify/middie can result in authentication/authorization bypass when using path-scoped middleware (for example, app.use('/secret', auth)).

When Fastify router normalization options are enabled (such as ignoreDuplicateSlashes, useSemicolonDelimiter, and related trailing-slash behavior), crafted request paths may bypass middleware checks while still being routed to protected handlers.

Impact An unauthenticated remote attacker can access endpoints intended to be protected by middleware-based auth/authorization controls by sending specially crafted URL paths (for example, //secret or /secret;foo=bar), depending on router option configuration.

This may lead to unauthorized access to protected functionality and data exposure.

Affected versions - Confirmed affected: @fastify/middie@9.1.0 - All versions prior to the patch are affected.

Patched versions - Fixed in: 9.2.0

Details The issue is caused by canonicalization drift between: 1. @fastify/middie path matching for app.use('/prefix', ...), and 2. Fastify/find-my-way route lookup normalization.

Because middleware and router did not always evaluate the same normalized path, auth middleware could be skipped while route resolution still succeeded.

Workarounds Until patched version is deployed: - Avoid relying solely on path-scoped middie guards for auth/authorization. - Enforce auth at route-level handlers/hooks after router normalization. - Disable risky normalization combinations only if operationally feasible.

Resources - Fluid Attacks Disclosure Policy: https://fluidattacks.com/advisories/policy - Fluid Attacks advisory URL: https://fluidattacks.com/advisories/jimenez

Credits - Cristian Vargas (Fluid Attacks Research Team) — discovery and report. - Oscar Uribe (Fluid Attacks) — coordination and disclosure.

Other sources

A vulnerability in @fastify/middie versions < 9.2.0 can result in authentication/authorization bypass when using path-scoped middleware (for example, app.use('/secret', auth)).

When Fastify router normalization options are enabled (such as ignoreDuplicateSlashes, useSemicolonDelimiter, and related trailing-slash behavior), crafted request paths may bypass middleware checks while still being routed to protected handlers.

MITRE

Affected Software

3 affected componentsFixes available
npm/@fastify/middie<9.2.0
npm/@fastify/middie<9.2.0
9.2.0
fastify Fastify\/middie Node.js<9.2.0

Event History

Feb 27, 2026
CVE Published
via MITRE·06:25 PM
Data Sourced
via MITRE·06:25 PM
DescriptionWeakness
Data Sourced
via NVD·07:16 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:16 PM
Affected Software
Feb 28, 2026
Advisory Published
via GitHub·02:47 AM
Data Sourced
via GitHub·02:47 AM
DescriptionWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-2880?

CVE-2026-2880 is categorized as a high severity vulnerability due to its potential to bypass authentication and authorization mechanisms.

2

How do I fix CVE-2026-2880?

To fix CVE-2026-2880, upgrade @fastify/middie to version 9.2.0 or later.

3

What versions are affected by CVE-2026-2880?

CVE-2026-2880 affects @fastify/middie versions prior to 9.2.0.

4

What is the impact of CVE-2026-2880?

The impact of CVE-2026-2880 is the risk of unauthorized access to protected routes due to improper path normalization.

5

Which scenarios are vulnerable to CVE-2026-2880?

Scenarios using path-scoped middleware in @fastify/middie versions below 9.2.0 are vulnerable to CVE-2026-2880.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203