CVE-2026-6270

@fastify/middie vulnerable to middleware authentication bypass in child plugin scopes

Published Apr 16, 2026 CVSS 3.1 · 9.1 Critical EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-72c6-fx6q-fr5w @fastify/middie vulnerable to middleware authentication bypass in child plugin scopes
History
Type Values Removed Values Added
First Time appeared Fastify fastify\/middie
CPEs cpe:2.3:a:openjsf:\@fastify\/middie:*:*:*:*:*:fastify:*:* cpe:2.3:a:fastify:fastify\/middie:*:*:*:*:*:node.js:*:*
Vendors & Products Openjsf
Openjsf \@fastify\/middie
Fastify fastify\/middie
Type Values Removed Values Added
First Time appeared Openjsf
Openjsf \@fastify\/middie
CPEs cpe:2.3:a:openjsf:\@fastify\/middie:*:*:*:*:*:fastify:*:*
Vendors & Products Openjsf
Openjsf \@fastify\/middie
Type Values Removed Values Added
First Time appeared Fastify
Fastify middie
Vendors & Products Fastify
Fastify middie
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title @fastify/middie vulnerable to middleware authentication bypass in child plugin scopes
Weaknesses CWE-436
References
Metrics cvssV3_1

{'score': 9.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
openjs
Published
Updated
Apr 16, 2026, 2:24 PM
Reserved
Apr 14, 2026, 11:08 AM
Status
Analyzed
Published
Apr 16, 2026, 2:16 PM
Modified
Jun 17, 2026, 11:00 AM