CVE-2026-112712 Details
Description
@fastify/middie is the Express-style middleware engine for Fastify. In versions from 9.0.0 through 9.3.5, the use() function joined a path-scoped middleware's mount path to the plugin scope prefix in a way that could diverge from the path Fastify's router serves, most often when the scope prefix ended in a slash, and also for array mount paths and for mount paths written without a leading slash. When the two paths disagreed, the middleware was silently skipped while the route handler still ran, so path-scoped middleware such as authentication, authorization, or rate limiting could be bypassed by a single unauthenticated request. The issue is fixed in @fastify/middie 9.3.6, and users should upgrade to 9.3.6 or later. As a workaround, enforce authorization in a Fastify hook such as preHandler that runs after the router has resolved the request.
A vulnerability in @fastify/middie versions 9.0.0 prior to 9.3.6 allows for path-scoped middleware bypass due to a mismatch between the middleware's mount path and Fastify's routing path. This issue commonly arises when the plugin scope prefix ends with a slash, causing middleware such as authentication or authorization to be skipped while the route handler is executed. The vulnerability can also be triggered by array mount paths or paths without a leading slash.
Users should upgrade to @fastify/middie version 9.3.6 or later. As a workaround, authorization can be enforced in a Fastify hook, such as preHandler, that runs after the router has resolved the request.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 20, 2026CISA-ADP
Assessed Oct 30, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://cna.openjsf.org/security-advisories.html | openjs | Bundle |
| https://github.com/fastify/middie/security/advisories/GHSA-5p92-8765-9fv8 | openjs | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-436 | Interpretation Conflict | openjs |
Affected Products
| Product | Versions |
|---|---|
| @fastify/middie | >= 9.0.0, < 9.3.6 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 30, 2026 | CVE Modified | CISA-ADP |
| Oct 20, 2026 | New CVE Received | openjs |
Volerion