CVE Catalog

CVE-2026-22031

High
Published: Translated: NVD NIST

Summary

The @fastify/middie plugin prior to version 9.1.0 has a vulnerability that allows bypassing registered middleware using URL-encoded characters. Attackers can access protected endpoints without the constraints imposed by the middleware.

Risk Assessment

Organizations may be exposed to unauthorized access to sensitive resources, potentially leading to data leaks or other serious security incidents.

Recommendation

It is recommended to update the @fastify/middie plugin to version 9.1.0 or later to mitigate this vulnerability.

Other vulnerabilities in @fastify/middie

See all
Original NVD description (English source)

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

Vulnerability data from NVD (NIST) · CISA KEV · EPSS