CVE-2026-33804 PUBLISHED

@fastify/middie vulnerable to middleware bypass via deprecated ignoreDuplicateSlashes option

Assigner: openjs
Reserved: 23.03.2026 Published: 16.04.2026 Updated: 16.04.2026

@fastify/middie versions 9.3.1 and earlier are vulnerable to middleware bypass when the deprecated Fastify ignoreDuplicateSlashes option is enabled. The middleware path matching logic does not account for duplicate slash normalization performed by Fastify's router, allowing requests with duplicate slashes to bypass middleware authentication and authorization checks. This only affects applications using the deprecated ignoreDuplicateSlashes option. Upgrade to @fastify/middie 9.3.2 to fix this issue. There are no workarounds other than disabling the ignoreDuplicateSlashes option.

Metrics

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

Product Status

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

Credits

  • FredKSchott reporter
  • mcollina remediation developer
  • climba03003 remediation reviewer
  • UlisesGascon remediation reviewer

References

Problem Types

  • CWE-436: Interpretation Conflict CWE