> CVE-2026-22031 [HIGH]

« BACK_TO_HOME
PUBLISHED
2026-01-19 16:15
MODIFIED
2026-01-19 16:15
CVSS_SCORE V3
8.4
EPSS (Prob. Exploit)
0.53%
Top 54.8%
DATA SOURCES:
NVD 🔗 2026-01-19 CWE MITRE 🔗 2026-11-01 FIRST EPSS 🔗 2026-11-08 GITHUB 🔗 2026-11-04 OSV 🔗 2026-11-08

> 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.

> AFFECTED_PRODUCTS

ℹ️ Aucun produit affecté n'a encore été publié par NVD pour cette CVE.

> CVSS V3 METRICS

CVSS_VECTOR
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:L
EXPLOITABILITY
1.8
IMPACT
6.0

> MÉTRIQUES CVSS DÉTAILLÉES

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:L
Métrique Valeur Interprétation
AV (Vecteur d'Attaque)
Attack Vector
Network (N)
Exploit possible à distance via réseau (HTTP, API, etc.)
AC (Complexité d'Attaque)
Attack Complexity
High (H)
Conditions spécifiques doivent être réunies pour exploiter
PR (Privilèges Requis)
Privileges Required
Low (L)
Authentifié avec compte utilisateur basique
UI (Interaction Utilisateur)
User Interaction
None (N)
Aucune interaction utilisateur nécessaire
S (Périmètre)
Scope
Changed (C)
Impact s'étend au-delà du composant compromis
C (Impact Confidentialité)
Confidentiality Impact
High (H)
Divulgation totale d'informations
I (Impact Intégrité)
Integrity Impact
High (H)
Modification totale des données possible
A (Impact Disponibilité)
Availability Impact
Low (L)
Interruption partielle du service possible

> RÉSUMÉ DES IMPACTS

Confidentialité
High
Divulgation totale d'informations
Intégrité
High
Modification totale des données possible
Disponibilité
Low
Interruption partielle du service possible

> WEAKNESSES

CWE-177

> CWE DETAILED DESCRIPTIONS

CWE-177: Improper Handling of URL Encoding (Hex Encoding) - The product does not properly handle when all or part of an input has been URL encoded.

> GITHUB SECURITY ADVISORY

GHSA-cxrg-g7r8-w69p HIGH

Fastify Middie Middleware Path Bypass

AFFECTED PACKAGES:
NPM / @fastify/middie
<= 9.0.3
Fixed in: 9.1.0

> OSV (GOOGLE OPEN SOURCE VULNERABILITIES)

Fastify Middie Middleware Path Bypass

AFFECTED PACKAGES:
Unknown / Unknown
30 versions affected
ALIASES:
GHSA-cxrg-g7r8-w69p

> HISTORIQUE DES MODIFICATIONS

Première apparition
19/01/2026 16:15
Source: NVD
📊 ENRICHISSEMENT 01/02/2026 06:44
CWE
Champ modifié: Description CWE
Ancienne valeur:
N/A
Nouvelle valeur:
CWE-177: Improper Handling of URL Encoding (Hex Encoding) - The product does not properly handle when all or part of an input has been URL encoded.
Total des modifications: 1 Dernière mise à jour: 9 months ago

> REFERENCES

https://github.com/fastify/middie/commit/d44cd56eb724490babf7b452fdbbdd37ea2effb...
https://github.com/fastify/middie/pull/245
https://github.com/fastify/middie/releases/tag/v9.1.0
https://github.com/fastify/middie/security/advisories/GHSA-cxrg-g7r8-w69p
« BACK_TO_HOME