
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-133250 is a path-scoped middleware bypass vulnerability in @fastify/middie, the Express-compatible middleware layer for the Fastify web framework. It allows unauthenticated remote attackers to bypass authentication, authorization, or rate-limiting middleware by crafting HTTP requests that exploit a path-matching mismatch between middie and Fastify's router (find-my-way). All releases of @fastify/middie prior to version 9.3.8 are affected. The vulnerability was disclosed on November 20, 2026, and carries a CVSS v3.1 base score of 9.1 (Critical) (GitHub Advisory).
The root cause is an interpretation conflict (CWE-436) combined with authentication bypass via an alternate path (CWE-288): @fastify/middie evaluates path-scoped middleware mounts against its own parsing of the raw request URL using path-to-regexp, while Fastify's router (find-my-way) independently resolves the route using different normalization rules. Three distinct request forms trigger the mismatch: (1) Empty parameter/wildcard segments — find-my-way accepts empty path segments for parameterized routes (e.g., /user/ matches /user/:id), but middie's path-to-regexp requires at least one character, so the middleware is skipped; (2) Asterisk-prefixed request targets — a request target like *admin is routed by find-my-way to /admin (stripping the leading *), while middie matches the literal target and finds no mount; (3) Percent-encoded literal % in mount paths — find-my-way keeps a literal % in a mount path encoded as %25, but middie decodes it an additional time, causing /100%25 to reach a /100% mount that middie skips. No special server configuration is required to trigger any of these vectors (GitHub Advisory).
Successful exploitation allows an unauthenticated network attacker to reach route handlers that are intended to be protected by middleware-enforced authentication, authorization, or rate-limiting controls. The high confidentiality and integrity impact (CVSS C:H/I:H) reflects that attackers can read sensitive data and perform unauthorized write or modification operations on protected resources. Availability is not directly impacted, but bypassing rate-limiting middleware could enable downstream abuse such as brute-force attacks or resource exhaustion (GitHub Advisory).
The GitHub Security Advisory includes concrete malicious request examples that serve as proof-of-concept steps, classified by Feedly with medium confidence as poc_steps. No exploit code or weaponized tooling has been publicly released, and there is no evidence of in-the-wild exploitation at the time of disclosure. The vulnerability requires no authentication, no user interaction, and no special configuration, making it trivially exploitable by any network-accessible attacker against a vulnerable Fastify application using path-scoped middleware. It is not currently listed in the CISA KEV catalog, and no EPSS score is available at this time (GitHub Advisory).
@fastify/middie for middleware (e.g., via HTTP response headers, npm package metadata, or open-source repository inspection). Confirm the application version is below 9.3.8.GET /tenant//admin targeting a route defined as /tenant/:id/admin. The router dispatches to the handler while middie skips the protecting middleware.*, e.g., GET *admin HTTP/1.1 with Host: target.com. find-my-way routes this to /admin while middie matches the literal *admin and finds no mount to enforce.% (e.g., /100%), send GET /100%25. The router matches the mount while middie's additional decoding causes it to skip the middleware./user/, /tenant//admin, /files/); requests with asterisk-prefixed request targets (e.g., *admin); requests containing %25 in paths that correspond to routes with literal % in their mount definitions.GET /user/ or GET /tenant//admin returning 200 OK responses (rather than 401/403) on routes expected to require authentication; repeated requests to protected endpoints from unauthenticated sessions.WWW-Authenticate) on protected routes when accessed via crafted paths (GitHub Advisory).Primary fix: Upgrade @fastify/middie to version 9.3.8 or later. The patch aligns middie's path matching with find-my-way's routing logic: empty parameter and wildcard values are now permitted, request targets not starting with / (other than the asterisk-form) are rejected, and literal % in mount paths is matched as the router keeps it encoded.
Workaround (if immediate upgrade is not possible): Enforce authentication in a Fastify hook such as preHandler that runs after the router has resolved the request, and base the access decision on request.routeOptions.url (the matched route pattern) rather than request.url (the raw request path). This approach is immune to all three bypass vectors (GitHub Advisory).
The advisory was published by Fastify core maintainer mcollina (Matteo Collina) on November 20, 2026, with UlisesGascon credited as the remediation reviewer. The advisory references a related prior vulnerability (GHSA-hx87-8wv7-pjv8) involving the same class of middleware bypass via absolute-form request targets, and links to an upstream find-my-way fix (delvedor/find-my-way#471) that prevents routing of paths not starting with /. No broader media coverage or notable social media commentary has been identified at this time (GitHub Advisory).
/-prefixed pathsSource: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."