CVE-2026-33804: @fastify/middie vulnerable to middleware bypass via deprecated ignoreDuplicateSlashes option

Published Apr 16, 2026
·
Updated

@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.

Other sources

Impact

@fastify/middie v9.3.1 and earlier does not read the deprecated (but still functional) top-level ignoreDuplicateSlashes option, only reading from routerOptions. This creates a normalization gap: Fastify's router normalizes duplicate slashes but middie does not, allowing middleware bypass via URLs with duplicate leading slashes (e.g., //admin/secret).

This only affects applications using the deprecated top-level configuration style (fastify({ ignoreDuplicateSlashes: true })). Applications using routerOptions: { ignoreDuplicateSlashes: true } are not affected.

This is distinct from GHSA-8p85-9qpw-fwgw (CVE-2026-2880), which was patched in v9.2.0.

Patches

Upgrade to @fastify/middie >= 9.3.2.

Workarounds

Migrate from deprecated top-level ignoreDuplicateSlashes: true to routerOptions: { ignoreDuplicateSlashes: true }.

GitHub

Affected Software

3 affected componentsFixes available
npm/@fastify/middie<=9.3.1
npm/@fastify/middie<=9.3.1
9.3.2
fastify Fastify\/middie Node.js<9.3.2

Event History

Apr 16, 2026
CVE Published
via MITRE·01:56 PM
Data Sourced
via MITRE·01:56 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·03:17 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·03:17 PM
Affected Software
Advisory Published
via GitHub·10:28 PM
Data Sourced
via GitHub·10:28 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-33804?

CVE-2026-33804 has a high severity rating due to the potential for middleware bypass in affected versions.

2

How do I fix CVE-2026-33804?

To fix CVE-2026-33804, upgrade @fastify/middie to version 9.3.2 or later, which addresses the vulnerability.

3

Which versions are affected by CVE-2026-33804?

CVE-2026-33804 affects @fastify/middie versions 9.3.1 and earlier.

4

What impact does CVE-2026-33804 have on applications?

CVE-2026-33804 can result in unauthorized access to middleware functions, potentially leading to security breaches.

5

Is the ignoreDuplicateSlashes option related to CVE-2026-33804?

Yes, the deprecation of the ignoreDuplicateSlashes option is directly linked to the vulnerability in CVE-2026-33804.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203