Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify route behind path-scoped middleware
-
ExploitRequest the router-served single-slash path
-
ExecutionMiddie match (doubled slash) fails to fire
-
ImpactReach protected handler with no auth enforced
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V4 - API and Web Service Interpretation consistency
|
| Exploitation Conditions | Exploitable only when ALL of these hold: (1) the application sets Fastify routerOptions.ignoreDuplicateSlashes = true; (2) a security-relevant path-scoped middleware (authentication, authorization, or rate limiting) is registered via @fastify/middie <= 9.3.6; and (3) that middleware's mount path reaches middie containing a duplicate slash - most commonly when a plugin prefix ending in '/' is joined to a mount path starting with '/', e.g. register(plugin, { prefix: '/api//v1/' }), yielding a doubled slash. When these align, the router collapses the slash and serves the protected handler while middie's compiled regex still demands the doubled slash and never matches, so no authentication is required to reach the handler. LIMITING FACTORS: the defaults are safe - ignoreDuplicateSlashes is off by default and the duplicate slash must be introduced by configuration, so default deployments are not affected; only routes behind the specifically mis-mounted middleware are exposed; and authorization enforced in a post-routing Fastify hook such as preHandler is NOT bypassed. Fix: upgrade to @fastify/middie 9.3.7 or later. |
| Impact | Signals point to a real but conditional, moderate-priority issue rather than a drop-everything emergency. The CVSS 3.1 base vector (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N = 4.8, medium) encodes the key trade-off: the flaw is network-reachable with no authentication (PR:N, UI:N) but carries high attack complexity (AC:H) because it only manifests when a specific, non-default combination of router option and mount-path shape is present, and impact is limited to Low confidentiality and Low integrity with no availability effect. This is not a memory-corruption or RCE bug - it is a security-control bypass whose true blast radius depends entirely on what the skipped middleware was protecting (authentication, authorization, or rate limiting). KEV status is NOT present in the input, so there is no evidence of active exploitation; EPSS is not provided, so exploitation-probability modelling cannot be cited here. The vuln.today decision label is 'this_month', consistent with a patch-on-normal-cycle priority rather than act_now/emergency. No SSVC exploitation/automatable/technical-impact triplet was supplied, so that framework cannot be applied. Net assessment: genuine access-control bypass worth remediating promptly in affected deployments, but the AC:H precondition (operator must have enabled ignoreDuplicateSlashes AND introduced a duplicate-slash mount path) means this is far from universally exploitable and should not be treated as a widespread internet-wide threat absent EPSS/KEV evidence. |
| Exploit ScenarioDerived | A Fastify application enables routerOptions.ignoreDuplicateSlashes and mounts a path-scoped auth/authorization middleware under a prefix that produces a doubled slash (e.g. register(plugin, { prefix: '/api//v1/' })). The router serves the protected handler at its collapsed single-slash path, but middie's compiled match still requires the doubled slash and never fires, so a remote unauthenticated attacker simply requests the normal single-slash URL and reaches the protected handler with the security middleware silently skipped. No public working exploit code is identified in the input; only the vendor GHSA advisory is referenced, and AC:H reflects that the vulnerable configuration must already exist. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 19, 2026
Path-scoped authentication, authorization, or rate-limiting middleware registered through @fastify/middie 9.3.6 and earlier is silently skipped when an application enables Fastify's ignoreDuplicateSlashes router option and a middleware mount path reaches middie with a doubled slash, allowing unauthenticated remote requests to the handler the router serves at the collapsed single-slash path. The failure is configuration-dependent: ignoreDuplicateSlashes is off by default, the duplicate slash must be introduced by application configuration (typically a plugin prefix ending in '/' joined to a mount path starting with '/'), and only routes behind the specifically mis-mounted middleware are exposed. No public exploit code or active exploitation has been identified at time of analysis; the vendor fixed the issue in 9.3.7.
RemediationAI
Vendor-released patch: upgrade @fastify/middie to 9.3.7 or later (npm/@fastify/middie, fixed in 9.3.7), which collapses duplicate slashes when compiling the middleware match so it aligns with the router's normalized paths. Where upgrading is not immediately possible, the advisory's workaround is to enforce authorization in a Fastify hook such as preHandler that runs after the router has resolved the request, since post-routing hooks are not bypassed by the mismatched middleware pattern; the trade-off is that the path-scoped middleware itself remains non-functional for those routes until the package is updated. Also avoid mount paths and plugin prefixes that introduce duplicate slashes - for example, do not join a plugin prefix ending in '/' to a mount path beginning with '/', which is the most common way the doubled slash reaches middie. Applications that never enable ignoreDuplicateSlashes (off by default) are outside the affected configuration and need no emergency action beyond routine upgrade. Advisories: https://github.com/fastify/middie/security/advisories/GHSA-56jq-34pf-p873 and https://cna.openjsf.org/security-advisories.html.
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
@fastify/middie is the Express/Connect-style middleware engine layered on top of Fastify. At registration time middie compiles each path-scoped middleware's mount path into a matching regular expression and uses that pattern to decide whether an incoming request passes through the middleware. Fastify's router exposes routerOptions.ignoreDuplicateSlashes, which collapses repeated slashes in both registered routes and incoming request paths, so a route registered at /admin//secret is served at /admin/secret. Middie performs no equivalent normalization, so a mount path containing a doubled slash produces a pattern that still requires the doubled slash and matches none of the URLs the router actually serves - the middleware is skipped while the handler executes. The root cause maps to CWE-436 (Interpretation Conflict): two components in the same request pipeline interpret the same path string differently. Exploitation requires the coincidence of three conditions: ignoreDuplicateSlashes enabled, a security-relevant path-scoped middleware registered through a vulnerable middie version, and a mount path that arrives with a duplicate slash. The supplied CPE string (cpe:2.3:a:@fastify/middie:@fastify/middie:*:*:*:*:*:*:*:*) is version-wildcarded and does not itself constrain the range; the advisory scopes impact to releases up to and including 9.3.6.
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:H/PR:N/UI:N/S:U/C:L/I:L/A:N
Network-reachable and unauthenticated (AV:N/PR:N/UI:N), but AC:H because exploitation needs the non-default ignoreDuplicateSlashes option plus a duplicate-slash mount path; impact limited to the bypassed handler (C:L/I:L/A:N).
Primary rating from Vendor (openjs).
CVSS VectorVendor: openjs
Lifecycle Timeline
1DescriptionCVE.org
@fastify/middie is the middleware engine that adds Express and Connect style middleware support to Fastify. In versions up to and including 9.3.6, middie builds the match regular expression for each path-scoped middleware from its mount path without collapsing duplicate slashes, even when the application enables the ignoreDuplicateSlashes router option. Under that option Fastify's router collapses duplicate slashes in both the registered route and the request path, so a mount path containing a doubled slash is served by the router at its single-slash form while the middleware's compiled match still requires the doubled slash and never matches. A path-scoped middleware such as authentication, authorization, or rate limiting is therefore skipped while the router dispatches the request to the protected handler, without any authentication required. Applications are affected when they enable ignoreDuplicateSlashes and a middleware mount path reaches middie with a duplicate slash, most commonly when a plugin prefix that ends with a slash is joined to a mount path that starts with one. The issue is fixed in @fastify/middie 9.3.7, and users should upgrade to 9.3.7 or later. As a workaround, enforce authorization in a Fastify hook such as preHandler that runs after routing, and avoid mount paths and plugin prefixes that introduce duplicate slashes.
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-scoped middleware bypass in @fastify/middie through 9.3.7 lets unauthenticated remote clients reach route handlers
Path-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
EUVD-2026-129772
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB