Intel

AIKIDO-2026-234024

@fastify/middie is vulnerable to Authentication Bypass

CVE-2026-112712Published Oct 26, 2026
October 26, 2026

91

CVE Score

Critical

Authentication Bypass

Are you affected? Scan for Free

TL;DR

use() stores a path-scoped middleware by concatenating the plugin scope prefix and the mount path, which diverges from the path Fastify's router serves when the prefix already ends in /, the mount path is an array, or the mount path has no leading slash. The route handler still runs while that middleware is skipped, so authentication, authorization, or rate limiting registered with use() never executes. The fix joins the prefix and each mount path the same way the router does.

How do I fix this?

Upgrade the @fastify/middie library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you rely on path-scoped middleware registered with use() for access control.

Versions

9.0.0 - 9.3.5

Fixed in 9.3.6

Background info

@fastify/middie is vulnerable to Authentication Bypass in versions 9.0.0 - 9.3.5.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea