Interpretation Conflict Affecting @fastify/middie package, versions >=9.3.6 <9.3.10


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.55% (40th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-FASTIFYMIDDIE-23050805
  • published30 Nov 2026
  • disclosed26 Nov 2026
  • creditMatteo Collina

Introduced: 26 Nov 2026

NewCVE-2026-135205  (opens in a new tab)
CWE-436  (opens in a new tab)

How to fix?

Upgrade @fastify/middie to version 9.3.10 or higher.

Overview

@fastify/middie is a Middleware engine for Fastify

Affected versions of this package are vulnerable to Interpretation Conflict via joinPrefix when a route or mount path is written without a leading slash inside a plugin registered under a prefix. Fastify concatenates such a path directly onto the prefix (e.g. get('secret') under /api is served at /apisecret), while @fastify/middie inserts a separating slash, mounting the middleware at /api/secret. A request to /apisecret therefore reaches the route handler without executing the middleware, allowing an attacker to bypass authentication or other middleware-based access controls on the affected routes.

Note: This is only exploitable when route or mount paths are written without a leading slash inside a prefixed plugin.

CVSS Base Scores

version 4.0
version 3.1