CRITICAL🇵🇱 Wersja polska

CVE-2026-33807

CVSS 9.1v3.1pub. 2026-04-15upd. 2026-06-01

@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
How it works

The bug is located in the onRegister function responsible for registering child plugins. When a child plugin is registered with a prefix matching the middleware path, the onRegister function duplicates this prefix, causing the middleware path to never match incoming HTTP requests. As a result, all routes defined within the scope of affected child plugins are handled without passing through configured middleware layers, such as authentication, authorization, or rate limiting.

Impact

An attacker can completely bypass authentication, authorization, and rate limiting mechanisms defined as Express middleware, gaining unauthorized access to protected resources and application functions.

Mitigation & patch

The @fastify/express library should be updated to version 4.0.5 or newer.

Who is affected

@fastify/express in version 4.0.4 and earlier

Analysis generated by Claude AI (Anthropic) based on NVD data. Always verify with vendor.
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
  • Fastify Fastify\/express

    APP
    Fastify
    < 4.0.5
🔵
CHECK WITH VENDOR
No clear patch data available. Check vendor references.
CWE
References

Related vulnerabilities

CVE-2026-6556CRITICAL9.1PL ✓same product

Pominięcie middleware w @fastify/express — obejście uwierzytelniania

CVE-2026-33808CRITICAL9.1PL ✓same product

Pominięcie uwierzytelnienia w @fastify/express via znormalizowane URL

CVE-2026-16117CRITICAL10.0PL ✓same vendor

Pominięcie rewrite prefiksu URL w @fastify/http-proxy – dostęp do ukrytych zasobów

CVE-2026-14198CRITICAL9.1PL ✓same vendor

Fastify/Middie: pominięcie middleware przez zakodowany slash w URL

CVE-2026-6270CRITICAL9.1PL ✓same vendor

Pominięcie uwierzytelnienia w @fastify/middie — brak dziedziczenia middleware