{"id":"CVE-2026-129850","state":"PUBLISHED","title":"@fastify/express vulnerable to path-scoped middleware bypass via Unicode case folding","description":"@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.","publishedAt":"2026-11-21T17:05:52.983Z","updatedAt":"2026-11-21T17:05:52.983Z","severity":{"score":7.4,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","source":"openjs"},"assigner":"openjs","products":["@fastify/express @fastify/express"],"affected":[{"vendor":"@fastify/express","product":"@fastify/express","packageURL":"pkg:npm/@fastify/express","defaultStatus":"unaffected","versions":[{"version":"4.0.0","status":"affected","lessThan":"4.0.10","versionType":"semver"},{"version":"4.0.10","status":"unaffected","versionType":"semver"}]}],"references":["https://github.com/fastify/fastify-express/security/advisories/GHSA-6rmc-f24g-hmp6","https://cna.openjsf.org/security-advisories.html"],"weaknesses":["CWE-178","CWE-863"],"ingestedAt":"2026-11-21T17:18:06.083Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/129xxx/CVE-2026-129850.json","commit":"11fcace9ce2de8afcfb8a9fad95c13cd10582fdd","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-129850","state":"PUBLISHED","datePublished":"2026-11-21T17:05:52.983Z","dateUpdated":"2026-11-21T17:05:52.983Z","assignerShortName":"openjs","assignerOrgId":"ce714d77-add3-4f53-aff5-83d477b104bb","dateReserved":"2026-11-16T12:28:25.792Z"},"containers":{"cna":{"title":"@fastify/express vulnerable to path-scoped middleware bypass via Unicode case folding","descriptions":[{"lang":"en","value":"@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."}],"affected":[{"vendor":"@fastify/express","product":"@fastify/express","packageURL":"pkg:npm/@fastify/express","defaultStatus":"unaffected","versions":[{"version":"4.0.0","status":"affected","lessThan":"4.0.10","versionType":"semver"},{"version":"4.0.10","status":"unaffected","versionType":"semver"}]}],"references":[{"url":"https://github.com/fastify/fastify-express/security/advisories/GHSA-6rmc-f24g-hmp6"},{"url":"https://cna.openjsf.org/security-advisories.html"}],"metrics":[{"format":"CVSS","cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","baseScore":7.4,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-178","lang":"en","description":"CWE-178: Improper Handling of Case Sensitivity","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-863","lang":"en","description":"CWE-863: Incorrect Authorization","type":"CWE"}]}],"providerMetadata":{"shortName":"openjs","orgId":"ce714d77-add3-4f53-aff5-83d477b104bb","dateUpdated":"2026-11-21T17:05:52.983Z"},"credits":[{"lang":"en","type":"remediation developer","value":"mcollina"},{"lang":"en","type":"remediation reviewer","value":"UlisesGascon"},{"lang":"en","type":"reporter","value":"rootsys-research"}],"x_generator":{"engine":"cve-kit 1.0.0"}}}}}