Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify middie path-scoped auth mount
-
DeliveryCraft request with empty param or leading '*' or literal '%'
-
ExploitRouter dispatches to protected handler
-
ExecutionMiddie skips guarding middleware
-
ImpactReach handler without authentication
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Alternate path authentication
|
| Exploitation Conditions | Exploitable only when the application relies on @fastify/middie (<= 9.3.7) to enforce path-scoped middleware - authentication, authorization, or rate limiting - on routes that use parameters (/user/:id), wildcards (/files/*path), multi-parameter or plugin-prefixed segments, or mount paths containing a literal percent character. Triggering requires sending one of three specific request forms: an empty parameter/wildcard value (e.g. /tenant//admin, /user/, /files/), a request target beginning with '*' (e.g. *admin), or a literal '%' in the mount path (e.g. /100%25). No authentication and no non-default configuration are required (PR:N, 'no special configuration required'). LIMITING FACTOR: applications that enforce authentication in a post-routing Fastify hook (e.g. preHandler) keyed on request.routeOptions.url rather than request.url are NOT exploitable - this is the documented workaround - so the flaw only affects deployments that trust middie's path-scoped matching as the security boundary. |
| Impact | This is a genuine high-priority issue, not an inflated CVSS score. The supplied CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/C:H/I:H) describes a remote, unauthenticated, low-complexity flaw requiring no user interaction, and the GHSA advisory explicitly confirms 'no special configuration is required,' so the severity and the described mechanism are mutually consistent - a notable point since auth-bypass CVEs often hinge on non-default settings but this one does not. The vuln.today Decision label is act_now, reinforcing urgency. However, key exploitation signals are MISSING: there is no EPSS score in the input, no CISA KEV entry (so exploitation status is 'no public exploit identified at time of analysis'), and no verified working exploit code among the references (only the GHSA advisory and the OpenJSF CNA page). The real-world impact is also conditional in an important way the raw score hides: the flaw only matters where path-scoped middie middleware is the enforcement point for authentication, authorization, or rate limiting - applications that enforce auth in a post-routing Fastify hook are unaffected. Net: treat as a priority to patch because the trigger conditions are simple and fully attacker-controlled and a related same-class advisory (GHSA-hx87-8wv7-pjv8) already exists, but note that no active-exploitation or probability data is available to quantify current attack volume. |
| Exploit ScenarioDerived | An application mounts authentication or rate-limiting middleware on a path such as /tenant/:id/admin or /files/*path using @fastify/middie 9.3.7 or earlier. An unauthenticated attacker sends a crafted request - for example /tenant//admin with an empty parameter, /user/ with an empty wildcard, a target beginning with '*' like *admin, or a path containing a literal percent such as /100%25 - which Fastify's find-my-way router dispatches to the protected handler while middie's own path matching fails to apply the guarding middleware. The handler executes without the intended authentication, authorization, or rate-limiting check. No public, verified exploit code is identified in the provided sources, though the three trigger forms are described in full detail in the GHSA advisory. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 21, 2026
Path-scoped middleware bypass in @fastify/middie through 9.3.7 lets unauthenticated remote clients reach route handlers that authentication, authorization, or rate-limiting middleware was mounted to protect (CVSS 9.1, AV:N/AC:L/PR:N/UI:N, CWE-288). Middie matches middleware against its own reading of the request path, which can diverge from the path Fastify's find-my-way router uses to dispatch, so crafted requests such as /tenant//admin, /user/, /files/, *admin, or /100%25 are routed to a covered handler while the middleware is skipped, with no special configuration required. The flaw is fixed in @fastify/middie 9.3.8; no public exploit identified at time of analysis, and it is not listed in CISA KEV. Deployments that enforce authentication in a post-routing Fastify hook keyed on request.routeOptions.url rather than request.url are not exploitable, so exposure is limited to applications that trust middie's path-scoped matching as the security boundary.
RemediationAI
Vendor-released patch: @fastify/middie 9.3.8 - upgrade to 9.3.8 or later, as documented in GHSA-gcf6-j9m3-p97x (https://github.com/fastify/middie/security/advisories/GHSA-gcf6-j9m3-p97x). The patched release makes middie match middleware against the path find-my-way routes, allowing empty parameter and wildcard values, rejecting request targets that do not start with a slash other than the asterisk-form, and matching a literal percent in a mount path in the encoded form the router retains. Where an immediate upgrade is not possible, the vendor-documented workaround is to enforce authentication in a Fastify hook such as preHandler that runs after the router has resolved the request and to base the decision on the matched route (request.routeOptions.url) rather than request.url; per the advisory this covers all three trigger vectors, but it shifts the enforcement point out of middie, so any mount still trusted as the sole gate remains bypassable. Review deployments for middleware mounts on parameterized, wildcard, plugin-prefixed, or percent-containing paths and confirm that no protected handler depends solely on middie's path matching. A related advisory covering absolute-form request targets, GHSA-hx87-8wv7-pjv8, and the corresponding find-my-way change in PR #471 (https://github.com/delvedor/find-my-way/pull/471) are worth tracking alongside this fix.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The root cause is an interpretation conflict (CWE-436) between two path parsers inside a single request pipeline, producing an authentication bypass via an alternate path (CWE-288). Fastify dispatches requests with find-my-way, while @fastify/middie decides whether a path-scoped middleware mount applies using its own path-to-regexp-based matching. The two disagree in three documented cases. First, an empty parameter or wildcard value is accepted by find-my-way but rejected by middie's mount pattern, which requires at least one character, so /tenant//admin reaches a /tenant/:id/admin mount with an empty id, /user/ reaches /user/:id, and /files/ reaches /files/*path; multiple parameters in one segment and plugin prefixes behave the same way. Second, a request target beginning with an asterisk, such as *admin, is routed by find-my-way to /admin because it skips the first character, while middie matches the target exactly as sent. Third, a literal percent character in a mount path is retained as %25 by the router but decoded once more by middie, so /100%25 reaches a /100% mount that middie skips. The fix in 9.3.8 aligns middie with the router: empty parameter and wildcard values are permitted, request targets that do not begin with a slash other than the asterisk-form are rejected, and literal percent signs in mount paths are matched in their router-encoded form. A related bypass of the same kind via absolute-form request targets was tracked as GHSA-hx87-8wv7-pjv8, and find-my-way PR #471 changes the router so it no longer routes paths that do not start with a slash. Critically, applications whose authorization decision is made after routing - in a Fastify preHandler keyed on the matched route (request.routeOptions.url) rather than request.url - are not affected.
Know when Fastify Middie gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Remote, unauthenticated, low-complexity bypass needing no user interaction or config; reaching protected handlers yields high confidentiality and integrity impact but no availability impact.
Primary rating from Vendor (openjs).
CVSS VectorVendor: openjs
Lifecycle Timeline
2DescriptionCVE.org
@fastify/middie is the middleware engine for the Fastify web framework. In versions up to and including 9.3.7, middie matches path-scoped middleware against its own reading of the request path, which can differ from the path Fastify's router uses to dispatch the request. When the two disagree, the router can route a request to a handler covered by a middleware mount while middie skips that middleware, so an unauthenticated client reaches a handler that an authentication, authorization, or rate-limiting middleware was meant to protect, with no special configuration required. The mismatch is triggered by empty parameter or wildcard values, request targets that do not begin with a slash, and literal percent characters in a mount path. The issue is fixed in @fastify/middie 9.3.8, and users should upgrade to 9.3.8 or later.
Technical POC Analysis
This is CWE-288 (Authentication Bypass Using an Alternate Path or Channel); the advisory also lists CWE-436 (Interpretation Conflict).
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
A critical vulnerability in @fastify/middie (through 9.3.7) allows unauthenticated attackers to bypass authentication, authorization, and rate-limiting middleware by manipulating request paths, potentially exposing protected application routes. Leadership should care because this silently undermines security controls across any Node.js service using the affected middleware, risking unauthorized access to sensitive data and functionality.
Apply vendor patch: @fastify/middie 9.3.8
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
More in Fastify Middie
View allPath-based access-control bypass in @fastify/middie (Fastify's Express-style middleware engine) versions 9.1.0 through 9
Authentication, authorization, and rate-limiting middleware bypass in @fastify/middie 9.0.0 through 9.3.5 can let a sing
Authentication bypass in @fastify/middie 9.3.1 and earlier lets unauthenticated attackers reach protected routes because
Authentication and authorization bypass in @fastify/middie 9.1.0 through 9.3.2 lets remote unauthenticated attackers rea
Middleware path-matching bypass in @fastify/middie before version 9.1.0 allows authenticated attackers to access protect
Authentication and authorization bypass in @fastify/middie (Node.js middleware library for Fastify) allows remote unauth
Path-scoped middleware bypass in @fastify/middie 8.3.0 through 9.3.6 allows an unauthenticated remote client to reach ro
Denial of service in @fastify/middie 9.1.0 through 9.3.2 lets remote unauthenticated attackers crash the Node.js process
Path-scoped middleware bypass in @fastify/middie up to and including 9.3.6 lets an unauthenticated client reach a protec
Authentication and authorization bypass in @fastify/middie 9.3.1 and earlier lets remote unauthenticated attackers reach
Path-scoped authentication, authorization, or rate-limiting middleware registered through @fastify/middie 9.3.6 and earl
EUVD-2026-132188
NVD
CVE.org
EPSS
GitHub
Exploit-DB