CVE-2026-33804: @fastify/middie vulnerable to middleware bypass via deprecated ignoreDuplicateSlashes option
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).
Published Apr 16, 2026
Affected packages
@fastify/middie
- Ecosystem
- npm
- Affected
- <= 9.3.1
- Fixed in
- 9.3.2
- Check
npm ls @fastify/middie
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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 }.
Credited to FredKSchott, mcollina, climba03003, UlisesGascon.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More npm vulnerabilities
All npm entriesCVE-2026-6270
@fastify/middie vulnerable to middleware authentication bypass in child plugin scopes
critical9.1Apr 16, 2026CVE-2026-2880
@fastify/middie has Improper Path Normalization when Using Path-Scoped Middleware
high8.2Feb 28, 2026CVE-2026-22031
Fastify Middie Middleware Path Bypass
high8.4Jan 20, 2026
