Skip to content

CVE-2026-6270 @fastify/middie vulnerable to middleware authentication bypass in child plugin scopes

CriticalCVSS 9.1 EPSS 0.51%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: total

Description

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

Upgrade path

3 packages: 3 fixed.

PackageAffectedFixed inStatus
@fastify/middie < 9.3.2 9.3.2 Fixed
fastify middie(npm) < 9.3.2; <= 9.3.1 9.3.2 Fixed
fastifymiddie < 9.3.2 9.3.2 Fixed

Affected products

ProductAffected versionsFixed in
@fastify/middie < 9.3.2 9.3.2
fastify middie(npm) <= 9.3.1 No fix listed
fastifymiddie < 9.3.2 9.3.2
fastify middie(npm) < 9.3.2 9.3.2

References