CVE-2026-135205
HIGH 7.4CVSS 3.1@fastify/middie vulnerable to middleware bypass via mount paths without a leading slash in prefixed plugins
@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.
- Published
- 26 Nov 2026
- Last modified
- 3 Dec 2026
- Assigned by
- ce714d77-add3-4f53-aff5-83d477b104bb
- NVD status
- Awaiting Analysis
- Weakness
- CWE-436CWE-863
- Sources
- NVDJSONCVE ListJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | ce714d77-add3-4f53-aff5-83d477b104bb (Secondary) | CVSS 3.1 | HIGH 7.4 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N |
| CVE List | openjs | CVSS 3.1 | HIGH 7.4 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N |
| CVE List | CISA-ADP | SSVC | Exploitation: none; Automatable: no; Technical Impact: total |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| CVE List | @fastify/middie | @fastify/middie | >= 9.3.6, < 9.3.10 | 9.3.10 |
References
- https://cna.openjsf.org/security-advisories.html
- https://github.com/fastify/middie/security/advisories/GHSA-4c7f-6888-3vrh
History
- 3 Dec 2026 19:56 UTC · NVD: updated (other details)
- 3 Dec 2026 17:56 UTC · CVE List: updated (other details)
- 2 Dec 2026 19:36 UTC · NVD: status Received → Awaiting Analysis
- 26 Nov 2026 18:37 UTC · NVD: first stored (published 26 Nov 2026)
- 26 Nov 2026 17:37 UTC · CVE List: first stored (published 26 Nov 2026)