Fastify Middie
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.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS8.8high · scored by NVD · CWE-177
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
fastify middie
- < 9.1.0
Fixed in 9.1.0
Mitigation
Upgrade middie to 9.1.0 or later.
References
- Vendor advisory github.com/fastify/middie/security/advisories/…
- Patch github.com/fastify/middie/pull/245
- Patch github.com/fastify/middie/commit/d44cd56eb7244…
1 more
- Release notes github.com/fastify/middie/releases/tag/v9.1.0
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.