Skip to main content

Fastify Middie CVE-2026-132133

| EUVDEUVD-2026-129772 MEDIUM
Interpretation Conflict (CWE-436)
2026-11-19 openjs
4.8
CVSS 3.1 · Vendor: openjs
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify route behind path-scoped middleware
  2. Exploit
    Request the router-served single-slash path
  3. Execution
    Middie match (doubled slash) fails to fire
  4. Impact
    Reach 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

@fastify/middie 0 <9.3.7

Affected Packages

euvd fastify_middie fix: 9.3.7

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

Vendor (openjs) PRIMARY 4.8 MEDIUM
AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
vuln.today AI 4.8 MEDIUM

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

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (openjs).

CVSS VectorVendor: openjs

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None

Lifecycle Timeline

1
Patch available
Nov 19, 2026 - 13:02 EUVD

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

EPSS Score
0.3%
Top 80% exploitable
Prevalence
Medium
popular Fastify middleware plugin, but only a subset of the Node ecosystem
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

24
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +24
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2026-133250 CRITICAL
9.1 Nov 21

Path-scoped middleware bypass in @fastify/middie through 9.3.7 lets unauthenticated remote clients reach route handlers

CVE-2026-85184 CRITICAL
9.1 Sep 04

Path-based access-control bypass in @fastify/middie (Fastify's Express-style middleware engine) versions 9.1.0 through 9

CVE-2026-112712 CRITICAL
9.1 Oct 20

Authentication, authorization, and rate-limiting middleware bypass in @fastify/middie 9.0.0 through 9.3.5 can let a sing

CVE-2026-6270 CRITICAL
9.1 Apr 16

Authentication bypass in @fastify/middie 9.3.1 and earlier lets unauthenticated attackers reach protected routes because

CVE-2026-14198 CRITICAL
9.1 Jul 01

Authentication and authorization bypass in @fastify/middie 9.1.0 through 9.3.2 lets remote unauthenticated attackers rea

CVE-2026-22031 HIGH
8.4 Jan 19

Middleware path-matching bypass in @fastify/middie before version 9.1.0 allows authenticated attackers to access protect

CVE-2026-2880 HIGH
8.2 Feb 27

Authentication and authorization bypass in @fastify/middie (Node.js middleware library for Fastify) allows remote unauth

CVE-2026-132131 HIGH
7.4 Nov 19

Path-scoped middleware bypass in @fastify/middie 8.3.0 through 9.3.6 allows an unauthenticated remote client to reach ro

CVE-2026-14181 HIGH
7.5 Jul 01

Denial of service in @fastify/middie 9.1.0 through 9.3.2 lets remote unauthenticated attackers crash the Node.js process

CVE-2026-132128 HIGH
7.4 Nov 19

Path-scoped middleware bypass in @fastify/middie up to and including 9.3.6 lets an unauthenticated client reach a protec

CVE-2026-33804 HIGH
7.4 Apr 16

Authentication and authorization bypass in @fastify/middie 9.3.1 and earlier lets remote unauthenticated attackers reach

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy