
PEACH
Uma estrutura de isolamento de inquilino
CVE-2026-132133 is a path-scoped middleware bypass vulnerability in the @fastify/middie npm package, allowing attackers to circumvent authentication, authorization, or rate-limiting middleware by exploiting duplicate slashes in mount paths. It affects all versions of @fastify/middie prior to 9.3.7 and was disclosed on November 18, 2026. The vulnerability carries a CVSS v3.1 base score of 4.8 (Moderate) (GitHub Advisory).
The root cause is an interpretation conflict (CWE-436) between how Fastify's router and @fastify/middie handle duplicate slashes in route paths. When routerOptions.ignoreDuplicateSlashes is enabled, Fastify's router normalizes duplicate slashes (e.g., /admin//secret becomes /admin/secret), but middie compiles its middleware match regular expressions from the raw, un-normalized mount path. As a result, the middleware's regex still requires the doubled slash and fails to match any request the router actually serves. This mismatch is most commonly triggered when a plugin prefix ending in / is joined to a mount path starting with / (e.g., register(plugin, { prefix: '/api//v1/' })), and no authentication is required to trigger the bypass (GitHub Advisory).
Successful exploitation allows an unauthenticated attacker to bypass path-scoped middleware — including authentication, authorization, and rate-limiting controls — and reach protected route handlers directly. This can result in unauthorized access to sensitive data (low confidentiality impact) and unauthorized modification of application state (low integrity impact). Availability is not directly impacted, but the bypass could enable further attacks depending on the protected resource (GitHub Advisory).
No public proof-of-concept exploit code or evidence of in-the-wild exploitation has been reported as of the advisory publication date. The attack requires no authentication and no user interaction, but exploitation complexity is rated High because the vulnerable configuration — specifically, enabling ignoreDuplicateSlashes and having a middleware mount path with a duplicate slash — must be present in the target application. No EPSS score or CISA KEV catalog entry has been identified for this CVE (GitHub Advisory).
@fastify/middie (versions < 9.3.7) with routerOptions.ignoreDuplicateSlashes enabled and has middleware mounted on a path containing a duplicate slash (e.g., /api//v1/admin)./api//v1/admin).GET /api/v1/admin/secret) — the path as Fastify's router resolves it after collapsing duplicate slashes.middie's compiled regex still expects the doubled slash, it does not match the normalized request path, and the middleware is skipped entirely.routerOptions.ignoreDuplicateSlashes: true in Fastify configuration combined with plugin prefixes or middleware mount paths containing consecutive slashes (e.g., /api//v1/) (GitHub Advisory).Upgrade @fastify/middie to version 9.3.7 or later, which resolves the duplicate-slash normalization mismatch. If an immediate upgrade is not possible, two workarounds are available: (1) enforce authorization logic in a Fastify hook such as preHandler that runs after the router has resolved the request, rather than relying solely on path-scoped middleware; and (2) audit and correct all plugin prefixes and middleware mount paths to eliminate consecutive slashes (GitHub Advisory).
The advisory was published by Fastify maintainer mcollina with UlisesGascon credited as remediation reviewer, indicating a coordinated internal disclosure process. No significant external media coverage or notable community commentary beyond the official advisory has been identified at this time (GitHub Advisory).
Origem: Este relatório foi gerado usando IA
Avaliação Gratuita de Vulnerabilidades
Avalie suas práticas de segurança em nuvem em 9 domínios de segurança para avaliar seu nível de risco e identificar lacunas em suas defesas.
Marque uma demonstração personalizada
"A melhor experiência do usuário que eu já vi, fornece visibilidade total para cargas de trabalho na nuvem."
"A Wiz fornece um único painel de vidro para ver o que está acontecendo em nossos ambientes de nuvem."
"Sabemos que se a Wiz identifica algo como crítico, na verdade é."