Fastify Middie auth bypass via Kelvin sign path mismatch (CVE-2026-132128)

In @fastify/middie <=9.3.6, path-scoped middleware mount paths are matched case-insensitively without Unicode folding, while Fastify's caseSensitive:false router lowercases request paths with Unicode-aware mapping (U+212A KELVIN SIGN - k). A request using a percent-encoded Kelvin sign in a protected mount path can reach a handler while auth/rate-limit middleware is skipped. Fixed in 9.3.7.

Affected product: @fastify/middie up to and including 9.3.6

Condition: Only applications that set Fastify's caseSensitive option to false and protect a mount path containing the letter k are affected.

Impact: A request that spells a k in a protected mount path as the percent-encoded KELVIN SIGN (U+212A) is routed to the protected handler, but middleware mounted on that path (for example authentication, authorization, or rate limiting) never matches and is skipped. This can let an unauthenticated client reach the handler.

Fix: Upgrade to @fastify/middie 9.3.7 or later.

Workaround: Enforce authorization in a Fastify hook such as preHandler that runs after routing, or keep routing case-sensitive (the default).

Sources: NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-132128 · GitHub advisory: https://github.com/fastify/middie/security/advisories/GHSA-r5h5-r25j-5vhr

What to do 1. Upgrade @fastify/middie to 9.3.7 or later in all affected Fastify applications. 2. If you cannot upgrade immediately, enforce authentication/authorization in a Fastify preHandler hook that runs after routing, or set caseSensitive back to the default true. 3. Review the vendor advisory and NVD entry to confirm your application matches the affected configuration (caseSensitive: false and a protected mount path containing k). 4. Audit access logs for requests containing %E2%84%AA or unusual encodings targeting protected paths. 5. Verify the vendor advisory before changing production if your middleware stack has custom path-matching behavior.

Sources