CVE-2026-2880Fastify/middie
High 8.2 No auth needed
Follow: this CVE · Fastify · Fastify/middie We alert you by email or Slack (account required).
- Priority
- 64
- CVSS 4.0
- 8.2
- EPSS
- —
- Auth required
- No
- Published
- Feb 27, 2026
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-20
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
What happens
A vulnerability in @fastify/middie versions < 9.2.0 can result in authentication/authorization bypass when using path-scoped middleware (for example, app.use('/secret', auth)).
When Fastify router normalization options are enabled (such as ignoreDuplicateSlashes, useSemicolonDelimiter, and related trailing-slash behavior), crafted request paths may bypass middleware checks while still being routed to protected handlers.
What to do
- Apply the vendor's security update for Fastify/middie.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | @fastify/middie |
< 9.2.0 |
9.2.0 |
npm install @fastify/middie@9.2.0 |
Per OSV / GitHub Advisories (GHSA-8p85-9qpw-fwgw). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| fastify | fastify/middie | < 9.2.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Mitigation Vendor Advisory