CVE-2026-135205

7.4High

Published Nov 26, 2026 · NVD status: Received · AI triage by gemini-3.1-flash-lite

7.4CVSS

High

0CVSS v3.110

Attack vector
Network
Complexity
High
Privileges
None
User action
None
Impact
High impact on confidentiality, integrity
Weakness
CWE-436, CWE-863

What an attacker gets

Attackers can bypass authentication or access control middleware on specific routes. This requires the application to have routes or mount paths defined without a leading slash within a prefixed plugin.

Root cause

The plugin inconsistently handles path concatenation when a route or mount path lacks a leading slash, causing middleware to be bypassed.

Affected versions

@fastify/middie versions 9.3.6 through 9.3.9

CVSS v3.1 · CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N

Fix & remediation

Upgrade to @fastify/middie 9.3.10 or later. As an interim mitigation, ensure all route and mount paths begin with a leading slash or move authentication logic to a preHandler hook.

remediation — bash
$ npm install @fastify/middie@latest

AI-suggested. Run it in staging first and check it against the vendor advisory. Why?

NVD description

@fastify/middie is the plugin that adds Express-style middleware support to the Fastify web framework. In versions 9.3.6 through 9.3.9, a route or mount path written without a leading slash inside a plugin registered under a prefix is handled inconsistently: the middleware is mounted with a separating slash after the prefix, while the route is concatenated directly onto the prefix, so a request to the concatenated path reaches the route handler without running the middleware mounted for it. An attacker can use this to bypass authentication or other middleware-based access controls on the affected routes. The issue is fixed in @fastify/middie 9.3.10, and users should upgrade to 9.3.10 or later. As a workaround, begin all route and mount paths with a slash, or enforce authentication in a Fastify hook such as preHandler that runs after the router resolves the request.

References

Source: nvd.nist.gov/vuln/detail/CVE-2026-135205

More fully triaged vulnerabilities you may want to check next.