Interpretation Conflict Affecting @fastify/middie package, versions <9.3.7


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.27% (20th 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-22743503
  • published23 Nov 2026
  • disclosed19 Nov 2026
  • creditSuperbot Helper

Introduced: 19 Nov 2026

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

How to fix?

Upgrade @fastify/middie to version 9.3.7 or higher.

Overview

@fastify/middie is a Middleware engine for Fastify

Affected versions of this package are vulnerable to Interpretation Conflict via sanitizePrefixUrl in lib/engine.js, which builds the match regular expression for each path-scoped middleware from its mount path without collapsing duplicate slashes when the application enables Fastify's routerOptions.ignoreDuplicateSlashes option. Under that option, Fastify's router collapses duplicate slashes in both the registered route and the request path, so a route registered at a doubled-slash path (e.g. /admin//secret) is served at its single-slash form, but the middleware's compiled match still requires the doubled slash and never matches any request the router serves. A path-scoped middleware such as authentication, authorization, or rate limiting is therefore skipped entirely while the router dispatches the request to the protected handler, allowing unauthenticated access.

Note: This is only exploitable when routerOptions.ignoreDuplicateSlashes is enabled and a middleware mount path contains a duplicate slash, most commonly when a plugin prefix ending in / is joined to a mount path starting with /.

CVSS Base Scores

version 4.0
version 3.1