Intel

AIKIDO-2026-272579

@fastify/middie is vulnerable to Authentication Bypass

Authentication BypassCVE-2026-85184 Published 4 days ago

91

Critical Risk

This Affects:

JS@fastify/middie
9.1.0 - 9.3.3
Fixed in 9.3.4
Are you affected? Scan for Free

TL;DR

@fastify/middie decides whether to run path-scoped middleware by matching against the raw request target, while the Fastify router resolves an absolute-form request target to its path before dispatching. Because the two layers evaluate different strings, a request using an absolute-form target reaches the route handler while path-scoped middleware such as authentication is skipped. The fix canonicalizes the request target before middleware path matching so both layers evaluate the same path.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and rely on path-scoped middie middleware for access controls.

Background info

@fastify/middie is vulnerable to Authentication Bypass in versions 9.1.0 - 9.3.3.

How to fix this

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

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform