External risk intelligence

Fastify Express Route Parameter Bypass Lets Attackers Skip Middleware.

CVE advisorySeverity: CRITICAL (CVSS 9.1)

CVE-2026-135279

The vulnerability affects a framework plugin used to integrate Express middleware into Fastify applications. Since these frameworks are commonly used to build internet-facing web applications, APIs, and microservices that process incoming network traffic, the vulnerable code is frequently deployed in public-facing or edge service environments.

Authentication Bypass

Halo Surface Signal: 4 out of 5 — likely to be public-facing.

External exposure likelihood

Horizon Alert

Summary of the vulnerability and why it matters

A vulnerability in the @fastify/express plugin could allow unauthenticated attackers to bypass access controls in web applications using Fastify and Express. This occurs when a request with an empty dynamic route parameter is made, causing certain middleware to be skipped. The practical impact depends on how the application handles this bypassed access.

  • Bypasses access controls in web applications.
  • Critical for applications using Fastify and Express.
  • Confirm relevance and exposure of plugin.

Attack Path

How an attacker could exploit the issue

An attacker could exploit this vulnerability by sending a specially crafted request with an empty dynamic route parameter. This bypasses initial access controls, allowing the attacker to reach and potentially manipulate downstream application logic. The impact depends on how the application handles the unexpected empty parameter, which could lead to unauthorized access or other unintended behaviors.

  • Requires network access.
  • Triggered by an empty dynamic route parameter.
  • Bypasses middleware-based access controls.

Live Threat

Current exploitation, exposure, and threat context

This vulnerability could allow an unauthenticated attacker to bypass access controls on certain routes by sending an empty value in a dynamic route parameter. This bypass happens because the plugin incorrectly handles empty parameters, leading to middleware being skipped when it should be executed. The practical impact depends on the specific application's routing and what data or functionality an attacker could access by circumventing these controls.

  • Access controls and application logic.
  • Empty route parameters bypass middleware.
  • Unauthorized access to resources or functions.

Operational Fix

Recommended remediation, mitigation, and detection steps

Application owners and platform teams are likely responsible for addressing this vulnerability, as it impacts the integration of Express middleware within Fastify web frameworks. The first practical step is to identify all instances of the affected @fastify/express plugin, determine their exposure and criticality, and then coordinate remediation with the relevant application owners.

  • Application owners should own the fix.
  • Verify application routes and middleware.
  • Plan upgrades during maintenance windows.

Supplementary metadata

Validate whether this threat affects your internet-facing exposure.

Halo Threat Intelligence helps prioritize remediation with Halo Surface Signal and H/A/L/O context. Start exposure validation with a free external attack surface trial.

Frequently asked questions

What is @fastify/express?

It is a specialized plugin for the Fastify web framework that allows developers to integrate and run legacy Express middleware or entire Express applications within a Fastify project. It serves as a bridge for teams migrating to or mixing these ecosystems, enabling the use of common Express routing patterns while maintaining Fastify's performance.

Why does CVE-2026-135279 cause middleware to be skipped?

This vulnerability involves Improper Neutralization and Interpretation of Data (CWE-436) and Improper Authentication (CWE-287). The plugin's router accepts empty dynamic route parameters, whereas the underlying Express router expects them to be non-empty. When this mismatch occurs, the framework fails to trigger the security middleware intended for that route, effectively leaving the request unprotected.

How is this vulnerability triggered?

An attacker triggers this by sending a web request that includes an empty value for a dynamic route parameter. Note that the bug is specifically tied to these empty parameters or unanchored regular-expression paths; if the application enforces non-empty values or relies strictly on standard static paths, the specific middleware-skipping behavior described in this CVE will not occur.

Is my application at risk?

According to Halo Surface Signal, this risk is categorized as 'Likely' because @fastify/express is frequently used in internet-facing web applications, APIs, and microservices. If your application processes public network traffic and relies on middleware for authentication or access control within an Express sub-application, it should be considered a priority for review.

What should I do to fix this?

The primary resolution is to upgrade your @fastify/express package to version 4.0.14 or later. If an immediate upgrade is not possible, you can implement temporary defenses, such as enforcing authentication checks via a Fastify preHandler hook—which runs after routing—or by updating your route schemas to strictly reject empty parameters.

References