Wiz se junta ao Google Cloud: Fazendo magia juntos

CVE-2026-132133: 
JavaScript Análise e mitigação de vulnerabilidades

Visão geral

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

Detalhes técnicos

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

Impacto

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

Explorabilidade

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

Etapas de exploração

  1. Reconnaissance: Identify a target Fastify application that uses @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).
  2. Identify protected route: Determine a route that should be protected by path-scoped middleware (e.g., an authentication or authorization middleware mounted at /api//v1/admin).
  3. Craft request: Send an HTTP request to the normalized path (e.g., GET /api/v1/admin/secret) — the path as Fastify's router resolves it after collapsing duplicate slashes.
  4. Bypass middleware: Because middie's compiled regex still expects the doubled slash, it does not match the normalized request path, and the middleware is skipped entirely.
  5. Access protected handler: The router dispatches the request directly to the route handler, granting access to the protected resource without passing through authentication or authorization middleware (GitHub Advisory).

Indicadores de compromisso

  • Logs: Access log entries showing successful (2xx/3xx) responses to routes that should require authentication, originating from unauthenticated sessions or unexpected source IPs.
  • Application Behavior: Requests reaching protected route handlers without corresponding middleware log entries (e.g., missing authentication check logs for sensitive endpoints).
  • Configuration Audit: Presence of routerOptions.ignoreDuplicateSlashes: true in Fastify configuration combined with plugin prefixes or middleware mount paths containing consecutive slashes (e.g., /api//v1/) (GitHub Advisory).

Mitigação e soluções alternativas

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

Reações da comunidade

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

Recursos adicionais


Origem: Este relatório foi gerado usando IA

Relacionado JavaScript Vulnerabilidades:

CVE ID

Gravidade

Pontuação

Tecnologias

Nome do componente

Exploit CISA KEV

Tem correção

Data de publicação

GHSA-mp5r-736v-j8x9HIGH7.5
  • JavaScript logoJavaScript
  • @react-router/dev
NãoSimNov 18, 2026
GHSA-j9x8-49mc-xpghHIGH7.5
  • JavaScript logoJavaScript
  • mercurius
NãoSimNov 18, 2026
CVE-2026-132131HIGH7.4
  • JavaScript logoJavaScript
  • @fastify/middie
NãoSimNov 18, 2026
CVE-2026-132128HIGH7.4
  • JavaScript logoJavaScript
  • @fastify/middie
NãoSimNov 18, 2026
CVE-2026-132133MEDIUM4.8
  • JavaScript logoJavaScript
  • @fastify/middie
NãoSimNov 18, 2026

Avaliação Gratuita de Vulnerabilidades

Avalie a sua postura de segurança na nuvem

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.

Avaliação de solicitação

Recursos adicionais da Wiz

Marque uma demonstração personalizada

Pronto para ver a Wiz em ação?

"A melhor experiência do usuário que eu já vi, fornece visibilidade total para cargas de trabalho na nuvem."
David EstlickCISO
"A Wiz fornece um único painel de vidro para ver o que está acontecendo em nossos ambientes de nuvem."
Adam FletcherDiretor de Segurança
"Sabemos que se a Wiz identifica algo como crítico, na verdade é."
Greg PoniatowskiChefe de Gerenciamento de Ameaças e Vulnerabilidades