Skip to content
A detailed explainer is available in Japanese. Read the Japanese explainer
Critical 9.1

@fastify/middieに認証回避の脆弱性、9.3.8で修正

CVE-2026-133250 First seen on SecPulse

Summary

Fastifyで@fastify/middieを使い、パスを指定したミドルウェアで認証などをかけているサーバーが、未認証のアクセスで処理を飛ばされるおそれがあります。9.3.7以前なら9.3.8以降へ更新し、難しければフックでの認証に切り替えてください。

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

Fastifyで@fastify/middieを使い、パスを指定したミドルウェアで認証などをかけているサーバーが、未認証のアクセスで処理を飛ばされるおそれがあります。9.3.7以前なら9.3.8以降へ更新し、難しければフックでの認証に切り替えてください。

Affected packages

PackageAffected → Fixed
@fastify/middie@fastify/middie
< 9.3.8→ 9.3.8
Original description The description as published by the source.

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

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details