{"id":"CVE-2026-135279","summary":"@fastify/express vulnerable to middleware bypass via empty route parameters in Express routers and sub-applications","details":"@fastify/express is the plugin that lets an application run Express middleware and Express applications inside the Fastify web framework. In versions before 4.0.14, a request with an empty dynamic route parameter reaches a Fastify route handler while middleware mounted for that path inside an Express Router or sub-application is skipped, because Fastify's router accepts an empty value where Express requires a non-empty one, and an unanchored regular-expression mount passed to the plugin is bypassed the same way. An earlier fix covered only the mount paths passed to the plugin directly, not middleware mounted inside a routed Express application. An attacker can use this to bypass authentication or other middleware-based access controls on the affected routes, with the practical impact depending on what the empty value selects in the application. The issue is fixed in @fastify/express 4.0.14, and users should upgrade to 4.0.14 or later. As a workaround, enforce authentication in a Fastify hook such as preHandler that runs after routing, mount the middleware on a static parent path, or require non-empty values in the route params schema.","aliases":["GHSA-f9qf-hfc5-7xpj"],"modified":"2026-11-28T05:00:13.262827251Z","published":"2026-11-26T16:51:11.794Z","database_specific":{"cwe_ids":["CWE-287","CWE-436"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/135xxx/CVE-2026-135279.json","cna_assigner":"openjs"},"references":[{"type":"ADVISORY","url":"https://cna.openjsf.org/security-advisories.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/135xxx/CVE-2026-135279.json"},{"type":"ADVISORY","url":"https://github.com/fastify/fastify-express/security/advisories/GHSA-f9qf-hfc5-7xpj"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-135279"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/fastify/fastify-express","events":[{"introduced":"0"},{"fixed":"2e28f38041ff4207ac3657f383a0b21d05684650"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"0"},{"fixed":"4.0.14"}],"source":"AFFECTED_FIELD","strategy":"StandardRange"},{"range":[{"introduced":"0"},{"fixed":"4.0.14"}],"source":"DESCRIPTION"}]}}],"versions":["v4.0.13","v4.0.12","v4.0.11","v4.0.10","v4.0.9","v4.0.8","v4.0.7","v4.0.6","v4.0.5","v4.0.4","v4.0.3","v4.0.2","v4.0.1","v4.0.0","v3.0.0","v2.3.0","v2.2.0","v2.1.0","v2.0.2","v2.0.1","v2.0.0","v1.1.0","v1.0.0","v0.3.3","v0.3.2","v0.3.1","v0.3.0","v0.2.0","v0.1.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-135279.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"}]}