Skip to content
High 7.4

@fastify/expressに認証を回避される脆弱性、大文字小文字の扱いが原因

CVE-2026-129850 First seen on SecPulse

Summary

@fastify/expressの4.0.0から4.0.9では、Unicodeの文字を使ったリクエストパスで、パス単位のミドルウェアが実行されず保護されたハンドラーに到達される脆弱性があります。大文字小文字を区別しないルーティングを有効にし、マウントパスに該当する文字が含まれる場合に限られます。4.0.10で修正されているため、4.0.10以降へ更新してください。

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/expressの4.0.0から4.0.9では、Unicodeの文字を使ったリクエストパスで、パス単位のミドルウェアが実行されず保護されたハンドラーに到達される脆弱性があります。大文字小文字を区別しないルーティングを有効にし、マウントパスに該当する文字が含まれる場合に限られます。4.0.10で修正されているため、4.0.10以降へ更新してください。

Affected packages

PackageAffected → Fixed
@fastify/express@fastify/express
≥ 4.0.0, < 4.0.10→ 4.0.10
Original description The description as published by the source.

@fastify/express is a compatibility layer that lets Express middleware run inside the Fastify web framework. In versions 4.0.0 through 4.0.9, when Fastify routing is configured to be case-insensitive, the router folds the request path to lower case in a way that maps certain non-ASCII Unicode characters to ASCII letters, but @fastify/express matches Express mount paths against the decoded path without applying the same folding. The two disagree, so a request that spells a letter of a mount path with an equivalent Unicode character is routed to the protected handler while the path-scoped middleware mounted on that path never matches and is skipped. An unauthenticated client can therefore reach a handler that an authentication, authorization, or rate-limiting middleware was meant to protect, though only when the application enables case-insensitive routing and the mount path contains an affected letter. The issue is fixed in @fastify/express 4.0.10, and users should upgrade to 4.0.10 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