Loading advisory.
Loading advisory.
@fastify/middie has Improper Path Normalization when Using Path-Scoped Middleware
A path normalization inconsistency in @fastify/middie can result in authentication/authorization bypass when using path-scoped middleware (for example, app.use('/secret', auth)).
Published 2026-02-27 18:25 UTC · Modified 2026-02-28 06:56 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| @fastify/middie | npm | < 9.2.0 | 9.2.0 | npm install @fastify/middie@9.2.0 |
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.
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.
Confirmed affected: @fastify/middie@9.1.0
All versions prior to the patch are affected.
Fixed in: 9.2.0
The issue is caused by canonicalization drift between:
@fastify/middie path matching for app.use('/prefix', ...), and
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.
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.
Fluid Attacks Disclosure Policy: https://fluidattacks.com/advisories/policy
Fluid Attacks advisory URL: https://fluidattacks.com/advisories/jimenez
Cristian Vargas (Fluid Attacks Research Team) — discovery and report.
Oscar Uribe (Fluid Attacks) — coordination and disclosure.
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
EPSS went from 0.004 on 2026-11-24 to 0.004 on 2026-12-01, over 3 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.004 | first score | v2026.06.15 |
| 2026-11-26 | 0.006 | 0.004 | v2026.06.15 |
| 2026-12-01 | 0.004 | 0.006 | v2026.06.15 |