{"id":"CVE-2026-124626","aliases":["EUVD-2026-132555","GHSA-662w-h4p6-jq4p"],"title":"@fastify/express vulnerable to middleware bypass via empty route parameters and wildcards","originalDescription":"@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.","severity":{"cvss":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","label":"critical"},"exploitation":{"kev":null,"epss":{"score":0.00457,"percentile":0.31628},"exploitDb":null},"affected":[{"ecosystem":"vendor","name":"@fastify/express","range":">=4.0.5, <4.0.10","fixed":"4.0.10"}],"references":[{"url":"https://github.com/fastify/fastify-express/security/advisories/GHSA-662w-h4p6-jq4p","type":"other"},{"url":"https://cna.openjsf.org/security-advisories.html","type":"other"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/124xxx/CVE-2026-124626.json","type":"advisory"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-124626","type":"advisory"}],"sources":[{"name":"nvd","at":"2026-11-23T21:33:04.665Z","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-124626","license":"NVD terms of use","firstSeenAt":"2026-11-21T17:43:04.593Z"},{"name":"osv","at":"2026-11-22T21:46:55.691Z","url":"https://osv.dev/vulnerability/CVE-2026-124626","license":"CC-BY 4.0","firstSeenAt":"2026-11-21T19:22:33.162Z"},{"name":"euvd","at":"2026-11-21T19:55:07.983Z","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-132555","license":"ENISA","firstSeenAt":"2026-11-21T19:22:06.695Z"},{"name":"cvelistV5","at":"2026-11-24T12:24:13.476Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-124626","license":"CVE Terms of Use","firstSeenAt":"2026-11-21T17:40:36.046Z"}],"firstSeenAt":"2026-11-21T17:40:36.046Z","publishedAt":"2026-11-21T17:01:36.000Z","modifiedAt":"2026-11-23T21:16:52.757Z"}