CVE-2026-133250
Received Received - Intake

Path Confusion in Fastify Middie Middleware

Vulnerability report for CVE-2026-133250, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-21

Last updated on: 2026-11-21

Assigner: openjs

Description

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

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-21
Last Modified
2026-11-21
Generated
2026-11-21
AI Q&A
2026-11-21
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
fastify middie to 9.3.7 (inc)
fastify middie From 9.3.8 (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-436 Product A handles inputs or steps differently than Product B, which causes A to perform incorrect actions based on its perception of B's state.
CWE-288 The product requires authentication, but the product has an alternate path or channel that does not require authentication.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

The vulnerability in @fastify/middie (versions up to 9.3.7) involves a mismatch between how middie and Fastify's router interpret request paths. This can cause middie to skip middleware meant to protect certain routes, allowing unauthenticated access to those routes without special configuration.

Detection Guidance

To detect this vulnerability, check the installed version of @fastify/middie using npm list @fastify/middie. If the version is less than 9.3.8, the system is vulnerable. Review application logs for requests with empty parameters, wildcards, or percent-encoded characters in paths.

Impact Analysis

This vulnerability can allow unauthorized users to access protected routes, bypassing authentication, authorization, or rate-limiting middleware. It is triggered by specific request patterns like empty parameters, wildcards, or percent-encoded characters in paths.

Compliance Impact

This vulnerability could lead to unauthorized access to sensitive data or protected routes, which may violate compliance requirements under GDPR (e.g., unauthorized data access) and HIPAA (e.g., unauthorized access to protected health information). The lack of authentication or authorization checks due to middleware bypass could result in non-compliance with these regulations.

Mitigation Strategies

Immediately upgrade @fastify/middie to version 9.3.8 or later. As a temporary workaround, enforce authentication in a Fastify preHandler hook using the matched route instead of the raw request URL.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-133250. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...