Quick answers
- Is CVE-2026-33804 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-33804 being exploited in the wild.
- How severe is CVE-2026-33804?
- High severity, with a CVSS score of 7.4, published 16 April 2026.
- Which products and versions are affected?
- Fastify Middie <= 9.3.1; @fastify/middie (npm) <= 9.3.1, SEMVER:introduced=0,fixed=9.3.2.
- Is there a fix for CVE-2026-33804?
- Yes. @fastify/middie (npm): upgrade to 9.3.2 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2026-33804 attacked?
- It is attacked over the network, in a software library.
- Am I affected by CVE-2026-33804?
- Check whether you run Fastify Middie or @fastify/middie (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- @fastify/middie (npm): upgrade to 9.3.2 or later
npm install @fastify/middie@9.3.2
Technical details
A middleware bypass vulnerability exists in @fastify/middie due to an interpretation conflict (CWE-436) between the middleware and the Fastify router. When the deprecated top-level 'ignoreDuplicateSlashes: true' option is used, the Fastify router normalizes duplicate slashes in incoming requests, but the middie middleware does not. This discrepancy allows an attacker to craft requests with duplicate slashes (e.g., '//admin') that fail to match middleware path patterns (avoiding auth/authz checks) but are correctly routed to protected handlers by the framework. This issue specifically affects applications using the deprecated top-level configuration rather than the newer 'routerOptions' configuration. The vulnerability is addressed in version 9.3.2.
Affected products
- Fastify @fastify/middie <= 9.3.1
Identifiers
- CVE-2026-33804
- GHSA-v9ww-2j6r-98q6
Timeline
- 2026-04-16: disclosed
- 2026-04-16: advisory
- 2026-04-16: patched