CVE-2026-22031: fastify fastify\/middie
Vulnerability summary
CVE-2026-22031 is a high (CVSS 8.8) vulnerability in fastify fastify\/middie. EPSS estimates a 0.53% chance of exploitation in the next 30 days, higher than 43.8% of scored vulnerabilities. 1 public exploit is recorded.
Advisory lineage
Upstream 0 · Downstream 0 · Related 1Timeline
- 19-01-2026PublishedVulnerability first disclosed.
- 20-01-2026Last modifiedVulnerability information updated.
Description
@fastify/middie is the plugin that adds middleware support on steroids to Fastify. A security vulnerability exists in @fastify/middie prior to version 9.1.0 where middleware registered with a specific path prefix can be bypassed using URL-encoded characters (e.g., `/%61dmin` instead of `/admin`). While the middleware engine fails to match the encoded path and skips execution, the underlying Fastify router correctly decodes the path and matches the route handler, allowing attackers to access protected endpoints without the middleware constraints. Version 9.1.0 fixes the issue.
CVSS metrics
3 scores · 3 sources · 1 version- CVE.orgCNA8.4HighCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:LDiffers
- OSV · NpmEcosystem advisory · calculated8.4HighCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:LDiffers
EPSS trend
Probability
0.53%
Chance of exploitation in the next 30 days
Percentile
44%
Versus all other CVEs
30-day change
+0.01 pp
From 0.53% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundMiddie
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Fastify2 products
- fastify\/middie< 9.1.0
- middie< 9.1.0
@fastify1 product
- middie< 9.1.0
2 vendors · 3 products
References
6 links- github.com/fastify/middie/security/advisories/GHSA-cxrg-g7r8-w69pX Refsource CONFIRMWEBExploitVendor Advisory
- github.com/fastify/middiePACKAGE