8.8

CVE-2026-22031: fastify fastify\/middie

CVSS: 8.8v3.1HighAnalyzed
AliasesGHSA-cxrg-g7r8-w69p
Published 19-01-2026Last modified 20-01-2026

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.

Overall risk
45/100
0100
Medium · default modelHow is this calculated?
CVSS score
8.8/10
010
High · v3.1 (NVD)
EPSS score
0.53%
0%100%
Low · +0.01 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1github

Advisory lineage

Upstream 0 · Downstream 0 · Related 1

Timeline

  1. 19-01-2026
    PublishedVulnerability first disclosed.
  2. 20-01-2026
    Last 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

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

20-09-202620-10-2026
EPSS score
0.53%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

1 found
  • githubUnverified

    Middie

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Fastify2 products
@fastify1 product
  • middie< 9.1.0

2 vendors · 3 products

References

6 links