{"id":"CVE-2026-132133","summary":"@fastify/middie vulnerable to path-scoped middleware bypass via duplicate-slash mount path","details":"@fastify/middie is the middleware engine that adds Express and Connect style middleware support to Fastify. In versions up to and including 9.3.6, middie builds the match regular expression for each path-scoped middleware from its mount path without collapsing duplicate slashes, even when the application enables the ignoreDuplicateSlashes router option. Under that option Fastify's router collapses duplicate slashes in both the registered route and the request path, so a mount path containing a doubled slash is served by the router at its single-slash form while the middleware's compiled match still requires the doubled slash and never matches. A path-scoped middleware such as authentication, authorization, or rate limiting is therefore skipped while the router dispatches the request to the protected handler, without any authentication required. Applications are affected when they enable ignoreDuplicateSlashes and a middleware mount path reaches middie with a duplicate slash, most commonly when a plugin prefix that ends with a slash is joined to a mount path that starts with one. The issue is fixed in @fastify/middie 9.3.7, and users should upgrade to 9.3.7 or later. As a workaround, enforce authorization in a Fastify hook such as preHandler that runs after routing, and avoid mount paths and plugin prefixes that introduce duplicate slashes.","aliases":["GHSA-56jq-34pf-p873"],"modified":"2026-11-19T13:00:09.523009217Z","published":"2026-11-19T11:36:48.807Z","database_specific":{"cna_assigner":"openjs","cwe_ids":["CWE-436"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/132xxx/CVE-2026-132133.json"},"references":[{"type":"ADVISORY","url":"https://cna.openjsf.org/security-advisories.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/132xxx/CVE-2026-132133.json"},{"type":"ADVISORY","url":"https://github.com/fastify/middie/security/advisories/GHSA-56jq-34pf-p873"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-132133"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/fastify/middie","events":[{"introduced":"0"},{"fixed":"53a92f486aa467fc1807bf1e8abbbd1fbe1853d0"}],"database_specific":{"extracted_events":[{"source":"AFFECTED_FIELD","strategy":"StandardRange","range":[{"introduced":"0"},{"fixed":"9.3.7"}]}]}}],"versions":["v9.3.6","v9.3.5","v9.3.4","v9.3.3","v9.3.2","v9.3.1","v9.3.0","v9.2.0","v9.1.0","v9.0.3","v9.0.2","v9.0.1","v8.3.1","v9.0.0","v8.3.0","v8.2.0","v8.1.0","v8.0.0","v7.0.0","v6.0.0","v5.4.0","v5.3.0","v5.2.0","v5.1.0","v5.0.0","v4.1.0","v4.0.1","v3.2.1","v3.2.0","v4.0.0","v3.1.0","v3.0.0","v2.1.1","v2.1.0","v2.0.0","v1.1.0","v1.0.0","v0.3.0","v0.2.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-132133.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N"}]}