{"id":"CVE-2026-124626","aliases":["CVE-2026-124626"],"related":[],"kind":"vulnerability","state":"published","title":"@fastify/express vulnerable to middleware bypass via empty route parameters and wildcards","summary":"@fastify/express is a compatibility layer that lets Express middleware run inside the Fastify web framework. In versions 4.0.5 through 4.0.9, the plugin matches path-scoped Express middleware with a matcher that requires a non-empty value for a dynamic segment, while Fastify's router accepts an empty parameter or wildcard value. When a route and an Express middleware mount share a dynamic pattern, a request with an empty segment matches the Fastify route and runs the handler while the middleware mounted on that pattern is skipped, so on a scoped mount an unauthenticated request can reach a protected handler. No special configuration is required, and the practical impact depends on what the empty value selects in the application. The issue is fixed in @fastify/express 4.0.10, and users should upgrade to 4.0.10 or later.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"@fastify/express is a compatibility layer that lets Express middleware run inside the Fastify web framework. In versions 4.0.5 through 4.0.9, the plugin matches path-scoped Express middleware with a matcher that requires a non-empty value for a dynamic segment, while Fastify's router accepts an empty parameter or wildcard value. When a route and an Express middleware mount share a dynamic pattern, a request with an empty segment matches the Fastify route and runs the handler while the middleware mounted on that pattern is skipped, so on a scoped mount an unauthenticated request can reach a protected handler. No special configuration is required, and the practical impact depends on what the empty value selects in the application. The issue is fixed in @fastify/express 4.0.10, and users should upgrade to 4.0.10 or later.","source":"cvelist"}],"published":"2026-11-21T17:01:36.437Z","modified":"2026-11-23T21:16:52.757Z","severity":{"scorer":"openjs","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"},"severities":[{"scorer":"openjs","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"}],"cwes":["CWE-287","CWE-436"],"affected":[{"ranges":[{"type":"semver","introduced":"4.0.5","fixed":"4.0.10","status":"affected"},{"type":"semver","version":"4.0.10","status":"unaffected"}],"vendor":"@fastify/express","product":"@fastify/express","source":"cvelist"}],"references":[{"url":"https://github.com/fastify/fastify-express/security/advisories/GHSA-662w-h4p6-jq4p","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cna.openjsf.org/security-advisories.html","tags":[],"sources":["cvelist","nvd"]}],"credits":["kleju13","mcollina","UlisesGascon"],"assigner":"openjs","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2026-11-23T20:18:01.992Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-124626","url":"https://www.cve.org/CVERecord?id=CVE-2026-124626","licence":"CVE Terms of Use","modified":"2026-11-23T20:18:15.648Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-124626","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-124626","licence":"Public domain","modified":"2026-11-23T21:16:52.757Z"}],"updatedAt":"2026-11-25T22:59:52.522Z","epss":{"score":0.00869,"percentile":0.59864,"date":"2026-12-01T12:00:22.000Z"}}