CVE 9.1 CRITICAL

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

9.1 / 10
CRITICAL
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

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.

AI Analysis

Middleware authentication bypass vulnerability in @fastify/middie versions 9.3.1 and earlier, allowing unauthenticated requests to reach routes defined in child plugin scopes.

Basic Information

ID CVE-2026-6270
Source openjs
Published Apr 16, 2026 at 13:44
Modified Apr 16, 2026 at 14:24

Affected Product

Vendor @fastify/middie
Product @fastify/middie
Affected Versions @fastify/middie @fastify/middie 0

CWE Classification

AI Assessment

AI Score 9.1 / 10
AI Severity Critical
Vendor Fastify
Product @fastify/middie
Version 9.3.1 and earlier

References

💭 Join the Security Discussion

🔒 Your email address will not be published. Required fields are marked *

⚠️ Please be respectful and constructive in your comments. Security discussions should remain professional.