Intel

AIKIDO-2026-183302

@fastify/middie is vulnerable to Authorization Bypass

CVE-2026-14198Published Jul 6, 2026
July 6, 2026

91

CVE Score

Critical

Authorization Bypass

Are you affected? Scan for Free

TL;DR

@fastify/middie decodes the encoded slash %2F inside path parameter values before matching middleware paths, while Fastify's underlying router preserves the encoding during route lookup. The two layers disagree on the canonical request path, so middleware fails to match a URL that the route handler still matches. When middleware enforces authentication, authorization, rate limiting, or auditing on parameterized paths, an attacker can reach the protected handler with a crafted URL such as /user/a%2Fb/comments without authentication. The fix decodes nested percent-encoded bytes so the middleware and router agree on the path.

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 use @fastify/middie middleware on parameterized paths for authentication, authorization, rate limiting, or auditing.

Versions

9.1.0 - 9.3.2

Fixed in 9.3.3

Background info

@fastify/middie is vulnerable to Authorization Bypass in versions 9.1.0 - 9.3.2.

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