Impact@fastify/express v4.0.4 and earlier fails to normalize URLs before passing them to Express middleware when Fastify router normalization options are enabled. This allows complete bypass of path-scoped authentication middleware via duplicate slashes when ignoreDuplicateSlashes is enabled, or via semicolon delimiters when useSemicolonDelimiter is enabled. In both cases, Fastify router normalizes the URL and matches the route, but @fastify/express passes the original un-normalized URL to Express middleware, which fails to match and is skipped. An unauthenticated attacker can access protected routes by manipulating the URL path. PatchesUpgrade to @fastify/express v4.0.5 or later.
Fix
Patch, vendor advisory and mitigation references on NVD 3
- https://cna.openjsf.org/security-advisories.html Vendor Advisory
- https://github.com/fastify/fastify-express/security/advisories/GHSA-6hw5-45gm-fj88 Exploit, Mitigation, Vendor Advisory
- https://github.com/fastify/fastify-express/security/advisories/GHSA-6hw5-45gm-fj88 Exploit, Mitigation, Vendor Advisory
Every line above is quoted from NVD, CISA, Microsoft, the vendor's own advisory or DISA; nothing is generated.
Change history 1
- First seenCVSS 9.1 · fastifyNVD modified 2026-10-26 22:10
Affected (CPE criteria) 1
cpe:2.3:a:fastify:fastify\/express:*:*:*:*:*:node.js:*:*
References 3
- https://cna.openjsf.org/security-advisories.html Vendor Advisory
- https://github.com/fastify/fastify-express/security/advisories/GHSA-6hw5-45gm-fj88 Exploit, Mitigation, Vendor Advisory
- https://github.com/fastify/fastify-express/security/advisories/GHSA-6hw5-45gm-fj88 Exploit, Mitigation, Vendor Advisory