CVE-2026-2880 Details
Description
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.
A vulnerability exists in @fastify/middie versions prior to 9.2.0, allowing authentication and authorization bypass when using path-scoped middleware. This issue arises from a normalization inconsistency between the middleware path matching and Fastify's route lookup, enabling crafted request paths to bypass middleware checks while still being routed to protected handlers. The vulnerability is exploitable when certain Fastify router normalization options are enabled, such as ignoring duplicate slashes or using semicolon delimiters, which can be exploited to access endpoints meant to be protected by middleware-based authentication or authorization controls.
Users are advised to update to @fastify/middie version 9.2.0 or later. If the update cannot be applied immediately, it is recommended to avoid relying solely on path-scoped middleware for authentication or authorization. Instead, enforce these controls at the route level after normalization, and disable any risky normalization options if possible.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Feb 27, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/fastify/middie/security/advisories/GHSA-8p85-9qpw-fwgw | openjs | MitigationVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-20 | Improper Input Validation | openjs |
Affected Products
| Product | Versions |
|---|---|
| fastify fastify/middie | < 9.2.0 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | openjs |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 14, 2026 | CPE Deprecation Remap | [email protected] |
| Mar 19, 2026 | Initial Analysis | [email protected] |
| Feb 27, 2026 | New CVE Received | openjs |