CVE 9.1 CRITICAL

@fastify/express vulnerable to middleware path doubling causing authentication bypass in child plugin scopes_CVE-2026-33807

9.1 / 10
CRITICAL
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Description

@fastify/express v4.0.4 and earlier contains a path handling bug in the onRegister function that causes middleware paths to be doubled when inherited by child plugins. When a child plugin is registered with a prefix that matches a middleware path, the middleware path is prefixed a second time, causing it to never match incoming requests. This results in complete bypass of Express middleware security controls, including authentication, authorization, and rate limiting, for all routes defined within affected child plugin scopes. No special configuration or request crafting is required.

Upgrade to @fastify/express v4.0.5 or later.

AI Analysis

Path handling bug causing middleware path doubling, leading to bypass of Express middleware security controls

Basic Information

ID CVE-2026-33807
Source openjs
Published Apr 15, 2026 at 09:52
Modified Apr 15, 2026 at 09:55

Affected Product

Vendor fastify
Product @fastify/express
Affected Versions fastify @fastify/express 0

CWE Classification

AI Assessment

AI Score 9.1 / 10
AI Severity Critical
Vendor Fastify
Product @fastify/express
Version v4.0.4 and earlier

References

💭 Join the Security Discussion

🔒 Your email address will not be published. Required fields are marked *

⚠️ Please be respectful and constructive in your comments. Security discussions should remain professional.