{"id":"CVE-2026-135205","aliases":["GHSA-4c7f-6888-3vrh"],"title":"@fastify/middie vulnerable to middleware bypass via mount paths without a leading slash in prefixed plugins","originalDescription":"@fastify/middie is the plugin that adds Express-style middleware support to the Fastify web framework. In versions 9.3.6 through 9.3.9, a route or mount path written without a leading slash inside a plugin registered under a prefix is handled inconsistently: the middleware is mounted with a separating slash after the prefix, while the route is concatenated directly onto the prefix, so a request to the concatenated path reaches the route handler without running the middleware mounted for it. An attacker can use this to bypass authentication or other middleware-based access controls on the affected routes. The issue is fixed in @fastify/middie 9.3.10, and users should upgrade to 9.3.10 or later. As a workaround, begin all route and mount paths with a slash, 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.00547,"percentile":0.3947},"exploitDb":null},"affected":[{"ecosystem":"vendor","name":"@fastify/middie","range":">=9.3.6, <9.3.10","fixed":"9.3.10"}],"references":[{"url":"https://github.com/fastify/middie/security/advisories/GHSA-4c7f-6888-3vrh","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-135205.json","type":"advisory"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-135205","type":"advisory"}],"sources":[{"name":"nvd","at":"2026-11-26T17:20:52.523Z","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-135205","license":"NVD terms of use","firstSeenAt":"2026-11-26T17:20:52.523Z"},{"name":"osv","at":"2026-11-27T21:25:03.799Z","url":"https://osv.dev/vulnerability/CVE-2026-135205","license":"CC-BY 4.0","firstSeenAt":"2026-11-26T18:27:33.073Z"},{"name":"cvelistV5","at":"2026-11-28T17:43:23.324Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-135205","license":"CVE Terms of Use","firstSeenAt":"2026-11-26T17:18:13.489Z"}],"firstSeenAt":"2026-11-26T17:18:13.489Z","publishedAt":"2026-11-26T16:43:20.513Z","modifiedAt":"2026-11-27T21:00:41.625Z"}