{"id":"CVE-2026-135264","aliases":["GHSA-wjm9-696x-9549"],"title":"@fastify/express vulnerable to middleware bypass via nested arrays of mount paths","originalDescription":"@fastify/express is the plugin that lets an application run Express middleware and Express applications inside the Fastify web framework. In versions from 4.0.7 before 4.0.14, when middleware is mounted on a nested array of mount paths the plugin rewrites only the top level of the array, so paths inside a nested array are not adjusted for a plugin registered under a prefix and the middleware never runs for them, a nested regular-expression mount keeps its global or sticky flag and is matched statefully so it is skipped on alternating requests, a nested regular expression is not matched case-insensitively when case sensitivity is disabled, and nested dynamic paths are not covered by the earlier empty-segment check. An attacker can use any of these to bypass authentication or other middleware-based access controls on the affected routes. The issue is fixed in @fastify/express 4.0.14, and users should upgrade to 4.0.14 or later. As a workaround, flatten mount path arrays before passing them to the plugin, or enforce authentication in a Fastify hook such as preHandler that runs after the router resolves the request.","severity":{"cvss":7.4,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","label":"high"},"exploitation":{"kev":null,"epss":{"score":0.00435,"percentile":0.29507},"exploitDb":null},"affected":[{"ecosystem":"vendor","name":"@fastify/express","range":">=4.0.7, <4.0.14","fixed":"4.0.14"}],"references":[{"url":"https://github.com/fastify/fastify-express/security/advisories/GHSA-wjm9-696x-9549","type":"other"},{"url":"https://cna.openjsf.org/security-advisories.html","type":"other"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/135xxx/CVE-2026-135264.json","type":"advisory"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-135264","type":"advisory"}],"sources":[{"name":"nvd","at":"2026-11-26T17:20:52.527Z","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-135264","license":"NVD terms of use","firstSeenAt":"2026-11-26T17:20:52.527Z"},{"name":"osv","at":"2026-11-28T06:45:53.017Z","url":"https://osv.dev/vulnerability/CVE-2026-135264","license":"CC-BY 4.0","firstSeenAt":"2026-11-28T05:06:41.591Z"},{"name":"cvelistV5","at":"2026-11-28T17:43:23.263Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-135264","license":"CVE Terms of Use","firstSeenAt":"2026-11-26T17:18:13.486Z"}],"firstSeenAt":"2026-11-26T17:18:13.486Z","publishedAt":"2026-11-26T16:56:01.394Z","modifiedAt":"2026-11-28T05:00:14.272Z"}