CVE-2026-129850: @fastify/express middleware bypass via Unicode path folding

@fastify/express 4.0.0 through 4.0.9 can skip path-scoped middleware when Fastify case-insensitive routing is enabled, allowing unauthenticated access to protected handlers. Fixed in 4.0.10.

@fastify/express is a compatibility layer that lets Express middleware run inside the Fastify web framework. In versions 4.0.0 through 4.0.9, when Fastify routing is configured to be case-insensitive, the router folds the request path to lower case in a way that maps certain non-ASCII Unicode characters to ASCII letters, but @fastify/express matches Express mount paths against the decoded path without applying the same folding. The two disagree, so a request that spells a letter of a mount path with an equivalent Unicode character is routed to the protected handler while the path-scoped middleware mounted on that path never matches and is skipped. An unauthenticated client can therefore reach a handler that an authentication, authorization, or rate-limiting middleware was meant to protect, though only when the application enables case-insensitive routing and the mount path contains an affected letter.

The issue is fixed in @fastify/express 4.0.10, and users should upgrade to 4.0.10 or later.

What to do 1. Upgrade @fastify/express to 4.0.10 or later in all affected Node.js services. 2. Review the NVD entry and the Fastify advisory (GHSA-6rmc-f24g-hmp6) to confirm applicability before changing production. 3. Audit applications that enable case-insensitive routing and use Express path-scoped middleware for authentication, authorization, or rate limiting. 4. If an immediate upgrade is not possible, consider disabling case-insensitive routing or restricting access to affected routes until the patch is applied. 5. Monitor logs for unusual Unicode path requests that may indicate attempts to bypass middleware.

Sources: - NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-129850 - Fastify advisory: https://github.com/fastify/fastify-express/security/advisories/GHSA-6rmc-f24g-hmp6 - OpenJS Foundation CNA: https://cna.openjsf.org/security-advisories.html

Sources