@fastify/middie is the plugin that adds middleware support on steroids to Fastify. A security vulnerability…
Historical advisory recorded 25 Oct 2026 05:17:32 UTC. Read the latest advisory.
nvd · CVE-2026-22031
Published@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.
Read the publisher's advisoryAffected versions, risk and source history
nvd · CVE-2026-22031
PublishedNVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON.
Source analysis status: Analyzed
Weakness classifications: CWE-177
Original publisher date fields
published: 2026-01-19T16:15:54.310
lastModified: 2026-06-17T10:19:23.437
1 source CPE criteria · context only
- cpe:2.3:a:fastify:fastify\/middie:*:*:*:*:*:node.js:*:*
The original JSON retains the logical configuration operators, exclusions and version bounds.
No normalized affected-package data is projected for this source revision. The original publisher record may contain additional product and version evidence; this does not establish that a package is unaffected.
Original source record · Cite this exact observation · Complete original publisher JSON