8.8

CVE-2026-22031

Exploit

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.
Daten sind bereitgestellt durch National Vulnerability Database (NVD)
FastifyFastify/middie SwPlatformnode.js Version < 9.1.0
Zu dieser CVE wurde keine Warnung gefunden.
EPSS Metriken
Typ Quelle Score Percentile
EPSS FIRST.org 0.46% 0.362
CVSS Metriken
Quelle Base Score Exploit Score Impact Score Vector String
nvd@nist.gov 8.8 2.8 5.9
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
security-advisories@github.com 8.4 1.8 6
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:L
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.

https://github.com/fastify/middie/security/advisories/GHSA-cxrg-g7r8-w69p
Vendor Advisory
Exploit
https://github.com/fastify/middie/pull/245
Patch
Issue Tracking
https://github.com/fastify/middie/commit/d44cd56eb724490babf7b452fdbbdd37ea2effba
Patch
https://github.com/fastify/middie/releases/tag/v9.1.0
Product
Release Notes