@fastify/middie is vulnerable to Authentication Bypass
91
CVE Score
Critical
Authentication Bypass
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.
Upgrade the @fastify/middie library to the patch version.
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.
9.0.0 - 9.3.5
Fixed in 9.3.6@fastify/middie is vulnerable to Authentication Bypass in versions 9.0.0 - 9.3.5.
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.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.