{"affected":[{"defaultStatus":"unaffected","ecosystem":"npm","packageName":"@fastify/express","product":"@fastify/express","source":"CNA: openjs","vendor":"@fastify/express","versions":[{"lessThan":"4.0.10","status":"affected","version":"4.0.5","versionType":"semver"},{"status":"unaffected","version":"4.0.10","versionType":"semver"}]}],"cveId":"CVE-2026-124626","cwes":["CWE-287","CWE-436"],"description":"@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.","epss":{"date":"2026-11-23","percentile":0.57264,"score":0.00792},"exploits":[],"kev":null,"metrics":[{"score":9.1,"severity":"critical","source":"CNA: openjs","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","version":"3.1"},{"score":9.1,"severity":"critical","source":"NVD: ce714d77-add3-4f53-aff5-83d477b104bb","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","version":"3.1"}],"modifiedAt":1795465095648,"publishedAt":1795280496437,"references":[{"source":"CNA: openjs","tags":[],"url":"https://github.com/fastify/fastify-express/security/advisories/GHSA-662w-h4p6-jq4p"},{"source":"CNA: openjs","tags":[],"url":"https://cna.openjsf.org/security-advisories.html"},{"source":"ce714d77-add3-4f53-aff5-83d477b104bb","tags":[],"url":"https://cna.openjsf.org/security-advisories.html"},{"source":"ce714d77-add3-4f53-aff5-83d477b104bb","tags":[],"url":"https://github.com/fastify/fastify-express/security/advisories/GHSA-662w-h4p6-jq4p"}],"remediation":[],"revision":"6098d5f89b417ef8da89716c5ac668e5fc2a8008c3cc9c8c6e72d75363f7a13d","sources":[{"modifiedAt":1795465095648,"name":"CNA: openjs","retrievedAt":1795468115053,"url":"https://www.cve.org/CVERecord?id=CVE-2026-124626"},{"modifiedAt":1795281399777,"name":"NVD","retrievedAt":1795284954288,"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-124626"},{"modifiedAt":null,"name":"FIRST EPSS","retrievedAt":1795468127841,"url":"https://api.first.org/data/v1/epss?cve=CVE-2026-124626"}],"ssvc":{"assessedAt":1795465081992,"automatable":"yes","exploitation":"none","source":"ADP: CISA-ADP","technicalImpact":"total"},"status":"published","title":"@fastify/express vulnerable to middleware bypass via empty route parameters and wildcards","updatedAt":1795468127841}