CVE-2026-2880
@fastify/middie has Improper Path Normalization when Using Path-Scoped Middleware
Sévérité par source
Le label propre à Trivy est CRITICAL. Critique selon NVD. Plus basse selon GHSA (élevée).
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.
Paquets affectés et versions corrigées
| Source | Paquet | Corrigé en |
|---|---|---|
| npm::GitHub Security Advisory npm | @fastify/middie | 9.2.0 |
Références
- https://fluidattacks.com/advisories/jimenez
- https://fluidattacks.com/advisories/policy
- https://github.com/fastify/middie
- https://github.com/fastify/middie/commit/140e0dd0359d890fec7e6ea1dcc5134d6bd554d4
- https://github.com/fastify/middie/releases/tag/v9.2.0
- https://github.com/fastify/middie/security/advisories/GHSA-8p85-9qpw-fwgw
- https://nvd.nist.gov/vuln/detail/CVE-2026-2880