GHSA-cxrg-g7r8-w69p · Severity: high · Ecosystem: npm — Fastify Middie Middleware Path Bypass
@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.
Conclusion & alert: CVE-2026-22031 is rated Exploit Available (54.8/100): CVSS High severity, with low exploitation likelihood (EPSS 0.06%). Core evidence: 1 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
| EDB-ID | Source | Kind | Published | Link |
|---|---|---|---|---|
| — | nvd_ref | exploit_tag | Exploit-DB ↗ |
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-01-20 | — | 0.06% | — |
Full EPSS history (1 record total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 8.4 | 3.1 | HIGH |
|
1.8 | 6.0 | [email protected] |
| 8.8 | 3.1 | HIGH |
|
2.8 | 5.9 | [email protected] |
GHSA-cxrg-g7r8-w69p · Severity: high · Ecosystem: npm — Fastify Middie Middleware Path Bypass
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| fastify | fastify\/middie | < 9.1.0 | cpe:2.3:a:fastify:fastify\/middie:*:*:*:*:*:node.js:*:* |
| URL | Tags |
|---|---|
| https://github.com/fastify/middie/commit/d44cd56eb724490babf7b452fdbbdd37ea2effba | Patch |
| https://github.com/fastify/middie/pull/245 | Issue Tracking Patch |
| https://github.com/fastify/middie/releases/tag/v9.1.0 | Product Release Notes |
| https://github.com/fastify/middie/security/advisories/GHSA-cxrg-g7r8-w69p | Exploit Vendor Advisory |