CRITICAL🇵🇱 Wersja polska

CVE-2026-6270

CVSS 9.1v3.1pub. 2026-04-16upd. 2026-05-14

@fastify/middie versions 9.3.1 and earlier do not register inherited middleware directly on child plugin engine instances. When a Fastify application registers authentication middleware in a parent scope and then registers child plugins with @fastify/middie, the child scope does not inherit the parent middleware. This allows unauthenticated requests to reach routes defined in child plugin scopes, bypassing authentication and authorization checks. Upgrade to @fastify/middie 9.3.2 to fix this issue. There are no workarounds.

🤖 AI Analysis
How it works

When a Fastify application registers authentication middleware (e.g., token or session verification) in a parent scope, and then registers child plugins using @fastify/middie, the library does not propagate this middleware directly to the instances of child plugin engines. As a result, requests directed to routes defined in child scopes are not passed through authentication and authorization mechanisms. An attacker can send an HTTP request without any credentials and gain access to protected resources, bypassing access control.

Impact

An unauthenticated attacker can gain access to application resources and functions protected by middleware registered in the parent scope, leading to violations of data confidentiality and integrity.

Mitigation & patch

Update @fastify/middie to version 9.3.2, which contains a fix for this issue. The vendor indicates that no workarounds exist for this vulnerability.

Who is affected

Openjsf @fastify/middie in versions 9.3.1 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\/middie

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

Related vulnerabilities

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

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

CVE-2026-14181HIGH7.5PL ✓same product

DoS w @fastify/middie — nieobsłużony wyjątek przy zniekształconych URL powoduje crash procesu

CVE-2026-33804HIGH7.4same product

@fastify/middie versions 9.3.1 and earlier are vulnerable to middleware bypass when the deprecated Fastify ign...

CVE-2026-2880HIGH8.2same product

A vulnerability in @fastify/middie versions < 9.2.0 can result in authentication/authorization bypass when usi...

CVE-2026-22031HIGH8.4same product

@fastify/middie is the plugin that adds middleware support on steroids to Fastify. A security vulnerability ex...