Vulnerabilities

CVE-2026-6270

Critical 9.1 CVSS 3.1

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.

Description as published by the source, in English.

Key facts

Published
2026-04-16
Last modified
2026-06-17
Assigned by
ce714d77-add3-4f53-aff5-83d477b104bb
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Scored by
ce714d77-add3-4f53-aff5-83d477b104bb
Probability of exploitation
0.5 % higher than 40 % of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15
Fix available
Not registered in the sources

Affected products

Vendor Product Versions Status
Fastify Fastify/middie < 9.3.2 Affected
fastify middie (npm) < 9.3.2 Affected

Weakness type

  • CWE-436: Interpretation Conflict

    Product A handles inputs or steps differently than Product B, which causes A to perform incorrect actions based on its perception of B's state.

References

Does this affect you?

A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.

Check your asset list Browse all vulnerabilities