CVE-2026-85184 PUBLISHED

@fastify/middie vulnerable to path-scoped middleware bypass via absolute-form request target

Assigner: openjs
Reserved: 03.09.2026 Published: 04.09.2026 Updated: 04.09.2026

@fastify/middie versions >= 9.1.0 and before 9.3.4 decide 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 the path-scoped middleware, such as authentication or authorization, is skipped. An unauthenticated network attacker can use this to bypass path-based access controls in a Fastify application that relies on middie for those controls. Users should upgrade to @fastify/middie 9.3.4 or later.

Metrics

CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
CVSS Score: 9.1

Product Status

Vendor @fastify/middie
Product @fastify/middie
Versions Default: unaffected
  • affected from 9.1.0 to 9.3.4 (excl.)
  • Version 9.3.4 is unaffected

Credits

  • zer0d4y5 reporter
  • mcollina remediation developer
  • UlisesGascon remediation reviewer

References

Problem Types

  • CWE-436: Interpretation Conflict CWE