Skip to main content

@fastify/middie CVE-2026-133250

| EUVDEUVD-2026-132188 CRITICAL
Authentication Bypass Using an Alternate Path or Channel (CWE-288)
2026-11-21 openjs
9.1
CVSS 3.1 · Vendor: openjs
View

Attack ChainAIDerived

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

  1. Access
    Identify middie path-scoped auth mount
  2. Delivery
    Craft request with empty param or leading '*' or literal '%'
  3. Exploit
    Router dispatches to protected handler
  4. Execution
    Middie skips guarding middleware
  5. Impact
    Reach 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.7% exploitation probability (EPSS)

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

Alert me

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

@fastify/middie 0 <9.3.8

Affected Packages

euvd fastify_middie fix: 9.3.8

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

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

Remote, unauthenticated, low-complexity bypass needing no user interaction or config; reaching protected handlers yields high confidentiality and integrity impact but no availability impact.

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

Primary rating from Vendor (openjs).

CVSS VectorVendor: openjs

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

Lifecycle Timeline

2
Patch available
Nov 21, 2026 - 18:02 EUVD
CVE Published
Nov 21, 2026 - 16:46 cve.org
CRITICAL 9.1

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

Why It Matters

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.

Business Impact: Severe
Compensating Controls

Apply vendor patch: @fastify/middie 9.3.8

Threat Intelligence Overview

EPSS Score
0.7%
Top 48% exploitable
Prevalence
Medium
common middleware engine for the popular Fastify Node.js framework, not universal
Social Media
3
Sightings
Data Quality
5 sources
Confidence: Medium

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 CRITICAL
CISA KEV No
Public POC No
EPSS 0.7%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
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
Out-of-Cycle
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
Very High

Priority Score

47
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +46
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-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

CVE-2026-132133 MEDIUM
4.8 Nov 19

Path-scoped authentication, authorization, or rate-limiting middleware registered through @fastify/middie 9.3.6 and earl

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