CVE-2026-6270
CRITICAL 9.1CVSS 3.1@fastify/middie vulnerable to middleware authentication bypass in child plugin scopes
@fastify/middie versions 9.3.1 and earlier do not register inherited middleware directly on child plugin engine instances. When a Fastify application registers authentication middleware in a parent scope and then registers child plugins with @fastify/middie, the child scope does not inherit the parent middleware. This allows unauthenticated requests to reach routes defined in child plugin scopes, bypassing authentication and authorization checks. Upgrade to @fastify/middie 9.3.2 to fix this issue. There are no workarounds.
- Published
- 16 Apr 2026
- Last modified
- 8 Jul 2026
- Assigned by
- ce714d77-add3-4f53-aff5-83d477b104bb
- NVD status
- Analyzed
- Weakness
- CWE-436
- Also known as
- GHSA-72c6-fx6q-fr5w
- Sources
- NVDJSONOSV GHSA-72c6-fx6q-fr5wJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | ce714d77-add3-4f53-aff5-83d477b104bb (Secondary) | CVSS 3.1 | CRITICAL 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | fastify | fastify/middiecpe:2.3:a:fastify:fastify\/middie:*:*:*:*:*:node.js:*:* |
< 9.3.2 | 9.3.2 |
| OSV | npm | @fastify/middie | < 9.3.2 | 9.3.2 |
References
- https://cna.openjsf.org/security-advisories.html · Vendor Advisory, WEB
- https://github.com/fastify/fastify-express/security/advisories/GHSA-hrwm-hgmj-7p9c · Exploit, Mitigation, Vendor Advisory, WEB
- https://github.com/fastify/middie/security/advisories/GHSA-72c6-fx6q-fr5w · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-6270 · ADVISORY
- https://github.com/fastify/middie · PACKAGE
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 16 Apr 2026)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 16 Apr 2026)