CVE-2026-133250
@fastify/middie vulnerable to path-scoped middleware bypass via request path matching mismatches
@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.
Fixes and workarounds
Fix
@fastify/middie (npm): GitHub reports patched versions 9.3.8. Check the advisory for the affected release branch.
Source: GitHub GHSA-gcf6-j9m3-p97xAffected products and versions
| Product | Versions | Authority |
|---|---|---|
| @fastify/middie @fastify/middie @fastify/middie
npm |
≥ 0; < 9.3.8 (affected, semver) 9.3.8 (unaffected, semver) Other versions: unaffected |
CNA: openjs |
@fastify/middie@fastify/middie
npm |
< 9.3.8 (affected, GitHub advisory range) | GitHub GHSA-gcf6-j9m3-p97x |
Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.
CVSS assessments
| Version / score | Vector | Authority |
|---|---|---|
| 3.1 / 9.1 critical |
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N | CNA: openjs |
| 3.1 / 9.1 critical |
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N | NVD: ce714d77-add3-4f53-aff5-83d477b104bb |
Exploit evidence
No exploit evidence in collected sources. This is not proof of no exploitation.
References
- https://github.com/fastify/middie/security/advisories/GHSA-gcf6-j9m3-p97xCNA: openjs
- https://cna.openjsf.org/security-advisories.htmlCNA: openjs
- https://cna.openjsf.org/security-advisories.htmlce714d77-add3-4f53-aff5-83d477b104bb
- https://github.com/fastify/middie/security/advisories/GHSA-gcf6-j9m3-p97xce714d77-add3-4f53-aff5-83d477b104bb
- https://github.com/fastify/middie/security/advisories/GHSA-gcf6-j9m3-p97xGitHub Security Advisories · advisory
For agents and automation
Read public disclosures for free as Markdown or JSON. Compatible browsers also expose native WebMCP tools to search disclosures, read this page, and discover API access.
Use the ontology-linked Cyber API with x402 pay per request, or a Y2 Pro or Elite API key with the intel:cyber scope.
Endpoints and access details
https://api.y2.dev/api/v2/cyber/cveshttps://api.y2.dev/api/v2/cyber/cves/{cveId}
A workspace owner or admin can create a Pro or Elite API key. Send Authorization: Bearer <Y2_API_KEY> from your trusted agent runtime.
For x402, omit Authorization and read the HTTP 402 payment challenge before signing a retry. Public browser tools do not make payments.