Quick answers
- Is CVE-2026-6270 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-6270 being exploited in the wild.
- How severe is CVE-2026-6270?
- Critical severity, with a CVSS score of 9.1, 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-6270?
- 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-6270 attacked?
- It is attacked over the network, in a software library.
- Am I affected by CVE-2026-6270?
- 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 vulnerability in @fastify/middie (v9.3.1 and earlier) occurs during the propagation of middleware from parent to child plugin scopes. When a child plugin is registered with a prefix that overlaps with a parent-scoped middleware path, the middleware path is incorrectly re-prefixed (doubled) during inheritance. This causes the middleware to fail to match incoming requests for routes defined within the child scope. Consequently, security-critical middleware—including authentication, authorization, and rate limiting—is silently bypassed. The issue is rooted in the onRegister function's handling of prefixed paths and is fixed in version 9.3.2.
Affected products
- Fastify @fastify/middie <= 9.3.1
Identifiers
- CVE-2026-6270
- GHSA-72c6-fx6q-fr5w
Timeline
- 2026-04-16: disclosed
- 2026-04-16: advisory
- 2026-04-16: patched: Fixed in version 9.3.2