{"id":"CVE-2026-124626","aliases":[],"cve":{"records":[{"id":"CVE-2026-124626","source":"openjs","state":"PUBLISHED","reasons":[],"replacements":[],"disputed":false,"unsupportedWhenAssigned":false,"reserved":"2026-11-09T07:15:04.703Z","published":"2026-11-21T17:01:36.437Z","modified":"2026-11-23T20:18:15.648Z"}],"publishers":[{"name":"openjs","role":"CNA","organizationId":"ce714d77-add3-4f53-aff5-83d477b104bb","modified":"2026-11-21T17:01:36.437Z"},{"name":"CISA-ADP","role":"ADP","organizationId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","modified":"2026-11-23T20:18:15.648Z"}],"references":[{"url":"https://github.com/fastify/fastify-express/security/advisories/GHSA-662w-h4p6-jq4p","tags":[],"source":"openjs"},{"url":"https://cna.openjsf.org/security-advisories.html","tags":[],"source":"openjs"}],"weaknesses":[{"id":"CWE-287","description":"CWE-287: Improper Authentication","source":"openjs"},{"id":"CWE-436","description":"CWE-436: Interpretation Conflict","source":"openjs"}],"applicability":[],"prioritization":[{"source":"CISA-ADP","type":"SSVC","role":"CISA Coordinator","timestamp":"2026-11-23T20:18:01.992355Z","decisions":[{"name":"Exploitation","value":"none"},{"name":"Automatable","value":"yes"},{"name":"Technical Impact","value":"total"}]}]},"title":"@fastify/express vulnerable to middleware bypass via empty route parameters and wildcards","titleSource":"openjs","descriptionSource":"openjs","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.","score":9.1,"severity":"critical","published":"2026-11-21T17:01:36.437Z","modified":"2026-11-23T20:18:15.648Z","withdrawn":false,"knownExploited":false,"affected":[],"products":[{"vendor":"@fastify/express","name":"@fastify/express","platforms":[],"versions":[{"version":"4.0.5","status":"affected","lessThan":"4.0.10","versionType":"semver"},{"version":"4.0.10","status":"unaffected","versionType":"semver"}],"defaultStatus":"unaffected","packageURL":"pkg:npm/@fastify/express","packageIdentity":{"ecosystem":"npm","name":"@fastify/express"},"cpes":[],"source":"openjs","url":"https://www.cve.org/CVERecord?id=CVE-2026-124626"}],"remediation":[],"references":["https://github.com/fastify/fastify-express/security/advisories/GHSA-662w-h4p6-jq4p","https://cna.openjsf.org/security-advisories.html"],"sources":[{"name":"CVE","id":"CVE-2026-124626","modified":"2026-11-23T20:18:15.648Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-124626"}],"assessments":[{"source":"openjs","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1}],"sourceAffected":[],"observedAt":"2026-11-23T20:25:43.246Z","kev":{"status":"not-listed","checkedAt":"2026-11-29T20:30:32.691Z"},"coverage":[{"source":"NVD","status":"available","checkedAt":"2026-11-21T17:35:33.338Z","attemptedAt":"2026-11-21T17:35:33.338Z"},{"source":"GHSA","status":"no-result","checkedAt":"2026-11-21T17:35:34.237Z","attemptedAt":"2026-11-21T17:35:34.237Z"},{"source":"EUVD","status":"no-result","checkedAt":"2026-11-21T17:35:35.301Z","attemptedAt":"2026-11-21T17:35:35.301Z"},{"source":"EPSS","status":"no-result","checkedAt":"2026-11-21T17:35:34.677Z","attemptedAt":"2026-11-21T17:35:34.677Z"}],"evidence":[{"source":"NVD","id":"CVE-2026-124626","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-124626","modified":"2026-11-21T17:16:39.777","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","checkedAt":"2026-11-21T17:35:33.338Z"}],"aiSummary":{"text":"@fastify/express versions 4.0.5 through 4.0.9 have a middleware bypass vulnerability via empty route parameters and wildcards, allowing unauthenticated requests to reach protected handlers. The issue occurs when a route and Express middleware mount share a dynamic pattern. The impact depends on the application's configuration.","model":"@cf/meta/llama-3.3-70b-instruct-fp8-fast","generatedAt":"2026-11-21T17:26:03.799Z","sources":[{"name":"CVE","url":"https://www.cve.org/CVERecord?id=CVE-2026-124626"}]}}