CVE-2026-6270: Vulnerability in fastify\/middie

Critical. @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...

npm, CWE-436

Exploitation
None confirmed
Severity
9.1 of 10
Attack likelihood
Unknown
Fix
Fixed version known
Patch deadline
No deadline set

Details

Advisory ID
GHSA-72c6-fx6q-fr5w
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Weakness
CWE-436
Published
16 Apr 2026
Last change
17 Jun 2026
Ecosystem
npm

Affected products

Affected versions and the first fixed release

  • fastify\/middie Before 9.3.2. Fixed in 9.3.2

Affected packages

Vulnerable version ranges and fixed releases

  • @fastify/middie npm, Affected through 9.3.1. Fixed in 9.3.2

Advisories

Vendor and security advisories

Related