Skip to content
DayZeroHub
Critical CVSS 9.1CVE-2026-133250

@fastify/middie: middleware bypass due to request path matching mismatches (CVE-2026-133250)

@fastify/middie @fastify/middie

Summary

@fastify/middie, the middleware engine for Fastify, can skip path-scoped middleware when it reads the request path differently from Fastify's router. The issue is fixed in version 9.3.8.

What happened

According to the CNA description, 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 readings disagree, the router can send a request to a handler covered by a middleware mount while middie skips that middleware. An unauthenticated client could therefore reach 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. CWE-288 and CWE-436 are associated with the issue.

Why it matters

The described impact is that authentication, authorization, or rate-limiting controls can be bypassed on handlers that rely on path-scoped middleware. The CVSS 3.1 score is 9.1 (critical severity), with vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N, assigned by CNA:openjs. CVE-2026-133250 is not listed as actively exploited in CISA's KEV catalog.

Affected products and versions

@fastify/middie: versions prior to 9.3.8 (the description states versions up to and including 9.3.7). Version 9.3.8 is listed as unaffected.

ProductVersionsFixed in
@fastify/middie @fastify/middie< 9.3.8—
@fastify/middie @fastify/middie9.3.89.3.8

Action recommended by the source

The vendor recommends upgrading to @fastify/middie 9.3.8 or later. References: https://github.com/fastify/middie/security/advisories/GHSA-gcf6-j9m3-p97x and https://cna.openjsf.org/security-advisories.html

Fixed in: 9.3.8

Information taken from the source or the vendor. Verify it at the original link before acting.

Sources and references

Weaknesses (CWE): CWE-288, CWE-436

Relevant change history

  1. Advisory correction

    The preliminary version was replaced by the full write-up.

  2. Published

    Preliminary advisory published.

Summary written with AI assistance from the source data. See the sources and references for complete information. View sources