Wiz se junta ao Google Cloud: Fazendo magia juntos

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

Visão geral

CVE-2026-132128 is a path-scoped middleware authentication bypass vulnerability in @fastify/middie caused by a Unicode case-folding mismatch between the Fastify router and the middleware matching layer. Affected versions are @fastify/middie <= 9.3.6; the issue is fixed in v9.3.7. The vulnerability was disclosed on November 18, 2026, via a GitHub Security Advisory. It carries a CVSS v3.1 base score of 7.4 (High) (GitHub Advisory).

Detalhes técnicos

The root cause is an improper handling of case sensitivity (CWE-178) leading to incorrect authorization (CWE-863). When Fastify is configured with routerOptions.caseSensitive: false, its router normalizes request paths using JavaScript's toLowerCase(), which maps the Unicode character U+212A (KELVIN SIGN, percent-encoded as %E2%84%AA) to the ASCII letter k. However, @fastify/middie matches path-scoped middleware mount paths using a case-insensitive regular expression that does not perform this Unicode folding. As a result, a request to /api/%E2%84%AAeys is resolved by the router to the /api/keys handler, while any middleware mounted at /api/keys (e.g., authentication or rate limiting) never matches the request path and is silently skipped. Exploitation requires no authentication or user interaction, but does require the application to have caseSensitive: false enabled and a middleware mount path containing the letter k (GitHub Advisory).

Impacto

A successful exploit allows an unauthenticated remote attacker to bypass path-scoped middleware controls — including authentication, authorization, and rate limiting — and directly access protected route handlers. The confidentiality and integrity impacts are rated High, as an attacker could read sensitive data or perform unauthorized write operations on resources that were intended to be protected. Availability is not directly impacted. The scope is limited to applications using @fastify/middie with case-insensitive routing and middleware mounted on paths containing the letter k (GitHub Advisory).

Explorabilidade

A proof-of-concept exploit path is described in the GitHub Security Advisory, providing sufficient detail (the crafted path /api/%E2%84%AAeys) to reproduce the bypass, though no runnable exploit code has been published. There is no evidence of active in-the-wild exploitation at this time. The CVE status is currently Reserved, and it does not appear in the CISA Known Exploited Vulnerabilities catalog. No EPSS score or threat actor attribution is available (GitHub Advisory).

Etapas de exploração

  1. Reconnaissance: Identify a target application using @fastify/middie <= 9.3.6 with routerOptions.caseSensitive: false configured, and locate a route whose path contains the letter k that is protected by path-scoped middleware (e.g., /api/keys guarded by an authentication middleware).
  2. Craft the bypass request: Construct an HTTP request where the letter k in the protected path is replaced with the URL-encoded Unicode KELVIN SIGN: %E2%84%AA. For example, replace /api/keys with /api/%E2%84%AAeys.
  3. Send the request: Issue the crafted HTTP request (e.g., GET /api/%E2%84%AAeys) to the target server without any authentication credentials or tokens.
  4. Achieve bypass: Fastify's router normalizes %E2%84%AA to k via toLowerCase() and routes the request to the /api/keys handler. The middleware layer, using a non-Unicode-aware case-insensitive regex, fails to match the mount path and is skipped entirely, granting unauthenticated access to the protected handler (GitHub Advisory).

Indicadores de compromisso

  • Network: HTTP requests containing the percent-encoded sequence %E2%84%AA (UTF-8 encoding of U+212A KELVIN SIGN) in the URL path, particularly in paths that correspond to sensitive or protected API endpoints (e.g., /api/%E2%84%AAeys).
  • Logs: Web server or application access logs showing requests with %E2%84%AA in the path that result in successful 2xx responses to normally protected endpoints, without corresponding authentication headers or session tokens.
  • Logs: Absence of middleware execution log entries (e.g., authentication or authorization log events) for requests that successfully reached protected handlers (GitHub Advisory).

Mitigação e soluções alternativas

Upgrade @fastify/middie to v9.3.7 or later, which correctly reads routerOptions.caseSensitive and applies consistent Unicode-aware path matching in the middleware layer. If an immediate upgrade is not possible, two workarounds are available: (1) enforce authentication and authorization logic inside a Fastify hook such as preHandler, which executes after the router resolves the request and is not subject to the middleware path-matching bug; or (2) leave routing case-sensitive (the default caseSensitive: true), which avoids the Unicode folding mismatch entirely (GitHub Advisory).

Reações da comunidade

The advisory was published by Fastify maintainer mcollina on November 18, 2026, with remediation credited to UlisesGascon. The disclosure follows responsible security practices with a patch released simultaneously. No significant broader media coverage or notable external researcher commentary 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