{"id":"CVE-2026-133120","state":"PUBLISHED","title":"@fastify/express vulnerable to path-scoped middleware bypass via request URL decoding and normalization mismatches","description":"@fastify/express is a compatibility layer that lets Express middleware run inside the Fastify web framework. In versions before 4.0.10, the plugin passes Express a request URL that does not always match the path Fastify's router dispatched, so path-scoped Express middleware can be skipped while the route handler still runs. Several request forms trigger the mismatch, including percent-decoding that rewrites a backslash to a slash or double-decodes an encoded percent sign, and a request target that begins with an asterisk, so the middleware and the handler disagree on the path or on parameter and query values. An unauthenticated client can therefore reach a handler that an authentication, authorization, or rate-limiting middleware was meant to protect, with no special configuration required. The issue is fixed in @fastify/express 4.0.10, and users should upgrade to 4.0.10 or later.","publishedAt":"2026-11-21T17:08:07.453Z","updatedAt":"2026-11-21T17:08:07.453Z","severity":{"score":9.1,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/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":"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-w877-hjcp-88rc","https://cna.openjsf.org/security-advisories.html"],"weaknesses":["CWE-174","CWE-436"],"ingestedAt":"2026-11-21T17:18:06.083Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/133xxx/CVE-2026-133120.json","commit":"11fcace9ce2de8afcfb8a9fad95c13cd10582fdd","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-133120","state":"PUBLISHED","datePublished":"2026-11-21T17:08:07.453Z","dateUpdated":"2026-11-21T17:08:07.453Z","assignerShortName":"openjs","assignerOrgId":"ce714d77-add3-4f53-aff5-83d477b104bb","dateReserved":"2026-11-19T12:57:33.628Z"},"containers":{"cna":{"title":"@fastify/express vulnerable to path-scoped middleware bypass via request URL decoding and normalization mismatches","descriptions":[{"lang":"en","value":"@fastify/express is a compatibility layer that lets Express middleware run inside the Fastify web framework. In versions before 4.0.10, the plugin passes Express a request URL that does not always match the path Fastify's router dispatched, so path-scoped Express middleware can be skipped while the route handler still runs. Several request forms trigger the mismatch, including percent-decoding that rewrites a backslash to a slash or double-decodes an encoded percent sign, and a request target that begins with an asterisk, so the middleware and the handler disagree on the path or on parameter and query values. An unauthenticated client can therefore reach a handler that an authentication, authorization, or rate-limiting middleware was meant to protect, with no special configuration required. 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":"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-w877-hjcp-88rc"},{"url":"https://cna.openjsf.org/security-advisories.html"}],"metrics":[{"format":"CVSS","cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","baseScore":9.1,"baseSeverity":"CRITICAL"},"scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-174","lang":"en","description":"CWE-174: Double Decoding of the Same Data","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-436","lang":"en","description":"CWE-436: Interpretation Conflict","type":"CWE"}]}],"providerMetadata":{"shortName":"openjs","orgId":"ce714d77-add3-4f53-aff5-83d477b104bb","dateUpdated":"2026-11-21T17:08:07.453Z"},"credits":[{"lang":"en","type":"finder","value":"mcollina"},{"lang":"en","type":"remediation reviewer","value":"UlisesGascon"}],"x_generator":{"engine":"cve-kit 1.0.0"}}}}}