CVE-2026-22031HIGH 8.8EPSS p36.2%

CVE-2026-22031CVE-2026-22031

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.

Scoring

CVSS 3.18.8 (HIGH)
VectorCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS0.46% probability of exploitation · percentile 36.2% · 2026-06-19T12:03:05Z
Published2026-01-19
Last modified2026-05-14

Underlying weaknesses· 1

CWE-177

References

  1. https://github.com/fastify/middie/commit/d44cd56eb724490babf7b452fdbbdd37ea2effba
  2. https://github.com/fastify/middie/pull/245
  3. https://github.com/fastify/middie/releases/tag/v9.1.0
  4. https://github.com/fastify/middie/security/advisories/GHSA-cxrg-g7r8-w69p

1

TypeTargetConfidenceTier
WeaknessImproper Handling of URL Encoding (Hex Encoding)cwe-1770%live

Related by meaning· 6

Nearest entities by semantic similarity across the cs-graph corpus.

CVE
CVE-2026-22037
CVE
CVE-2026-2880
CVE
CVE-2026-33804
CVE
CVE-2026-6270
CVE
CVE-2026-33808
CVE
CVE-2026-33807
Sourced from NVD + FIRST.org EPSS. Curated for EU compliance use cases by Adam Lundqvist, Founder at SQUR.