# CVE-2026-133250: @fastify/middie vulnerable to path-scoped middleware bypass via request path matching mismatches

Status: published. Published: 2026-11-21. Updated: 2026-11-23.

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

## Remediation

- fix: @fastify/middie (npm): GitHub reports patched versions 9.3.8. Check the advisory for the affected release branch. (source: GitHub GHSA-gcf6-j9m3-p97x) — https://github.com/fastify/middie/security/advisories/GHSA-gcf6-j9m3-p97x

## Affected products and versions

- @fastify/middie / @fastify/middie (@fastify/middie): ≥ 0; < 9.3.8 (affected, semver); 9.3.8 (unaffected, semver). Source: CNA: openjs
-  / @fastify/middie (@fastify/middie): < 9.3.8 (affected, GitHub advisory range). Source: GitHub GHSA-gcf6-j9m3-p97x

## Severity and prioritization

- CVSS 3.1: 9.1 (critical); CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N; source: CNA: openjs

- CVSS 3.1: 9.1 (critical); CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N; source: NVD: ce714d77-add3-4f53-aff5-83d477b104bb

- CISA KEV: No listing in collected sources

- EPSS: 0.65% as of 2026-11-23; percentile 52.23%

- SSVC: exploitation none; automatable yes; technical impact total; source ADP: CISA-ADP

- Weaknesses: CWE-288, CWE-436

## 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-p97x (CNA: openjs)

- https://cna.openjsf.org/security-advisories.html (CNA: openjs)

- https://cna.openjsf.org/security-advisories.html (ce714d77-add3-4f53-aff5-83d477b104bb)

- https://github.com/fastify/middie/security/advisories/GHSA-gcf6-j9m3-p97x (ce714d77-add3-4f53-aff5-83d477b104bb)

- https://github.com/fastify/middie/security/advisories/GHSA-gcf6-j9m3-p97x (GitHub Security Advisories; advisory)

## Provenance

- CNA: openjs: https://www.cve.org/CVERecord?id=CVE-2026-133250; retrieved 2026-11-23; source updated 2026-11-23

- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-133250; retrieved 2026-11-21; source updated 2026-11-21

- GitHub Security Advisories: https://github.com/fastify/middie/security/advisories/GHSA-gcf6-j9m3-p97x; retrieved 2026-11-23; source updated 2026-11-20

- FIRST EPSS: https://api.first.org/data/v1/epss?cve=CVE-2026-133250; retrieved 2026-11-23; source updated Not reported

Revision: d16321c112f7b850b50d09ff9bd25afec0dc3c85321d5ad839e313282d26f979

Canonical: https://y2.dev/cve/CVE-2026-133250

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.