{"id":"CVE-2026-135279","aliases":[],"kind":"cve","tier":"hot","status":"published","title":"@fastify/express vulnerable to middleware bypass via empty route parameters in Express routers and sub-applications","description":"@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.","ai_summary":{"text":"An attacker can send requests with an empty dynamic route parameter to bypass Express middleware and access controls in @fastify/express routers and sub-applications.","model":"claude-haiku-5-5","label":"AI summary"},"severity":"critical","cvss":{"score":9.1,"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","source":"CNA"},"scores":[{"score":9.1,"source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","version":"3.1"}],"cwe":["CWE-287","CWE-436"],"remote":true,"remote_unauth":true,"epss":null,"kev":{"listed":false,"added":null,"due":null,"ransomware":null},"exploit":{"public":false,"exploitdb_ids":[]},"affected":[],"affected_products":[{"source":"cvelist","vendor":"@fastify/express","product":"@fastify/express","versions":"< 4.0.14"}],"ai_versions":{"affected":[{"text":"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","quote":"In versions before 4.0.14","product":"@fastify/express"}],"fixed":[{"quote":"The issue is fixed in @fastify/express 4.0.14","product":"@fastify/express","version":"4.0.14"}],"model":"claude-haiku-5-5","label":"AI-extracted versions"},"mitigation":"Upgrade @fastify/express to 4.0.14 or later.","technologies":[{"slug":"express","name":"Express","method":"ai"},{"slug":"nodejs","name":"Node.js","method":"ai"},{"slug":"npm","name":"npm packages","method":"ai"}],"references":[{"url":"https://github.com/fastify/fastify-express/security/advisories/GHSA-f9qf-hfc5-7xpj","kind":"vendor"},{"url":"https://cna.openjsf.org/security-advisories.html","kind":"other"}],"workarounds":null,"vendors":["@fastify/express"],"products":["@fastify/express"],"cpes":[],"published_at":"2026-11-26T16:51:11.794Z","modified_at":"2026-11-26T17:17:06.490Z","promoted_at":null,"attribution":[{"source":"CVE Program","text":"CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation.","url":"https://www.cve.org/Legal/TermsOfUse"},{"source":"NVD","text":"This product uses data from the NVD API but is not endorsed or certified by the NVD.","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-135279"}],"links":{"html":"https://flawdb.com/CVE-2026-135279","markdown":"https://flawdb.com/CVE-2026-135279.md","json":"https://flawdb.com/api/v1/entries/CVE-2026-135279"}}