Skip to content
NewCybercrime Report 2026 · Eight Chapters · A Post Is Not An Incident → Explore The ChaptersCybercrime Report 2026 → Explore

Fastify Express Router Middleware Bypass (CVE-2026-135279)

CVE-2026-135279 is a middleware bypass in @fastify/express before version 4.0.14.

Reviewed by
Brandefense Analyst Team
Published
Reading Time
3 min read
CVE ID
CVE-2026-135279
Vendor
Fastify
Affected Product
@fastify/express
Exploitation
Not confirmed
Published
2026-11-26

The OpenJS CVE record says an empty dynamic route parameter can reach a Fastify handler while authentication middleware inside a mounted Express Router or sub-application is skipped.Fastify accepts an empty route value that the Express matcher requires to be non-empty. The vendor also describes a bypass involving an unanchored regular-expression mount. What an attacker can reach depends on the application's routes and the value selected by the empty parameter.

What it allows

How Does CVE-2026-135279 Bypass Middleware?

The vendor says the Fastify and Express route matchers disagree about empty dynamic values. In the affected arrangement, Fastify can dispatch a request to a handler while the Express Router or sub-application does not run middleware mounted for that path. Teams using Vulnerability Intelligence can prioritize the package and route configuration together.

The vendor says @fastify/express 4.0.10 addressed a related bypass for dynamic paths passed directly to the plugin. It did not cover middleware mounted inside a routed Express application. The earlier CVE-2026-124626 profile describes that separate path.

The advisory also describes unanchored regular-expression mounts whose matches do not begin at the path start. This is another configuration that can miss protection for a handler. The prefix mount bypass profile covers a different Fastify Express issue.

The advisory describes the bypass mechanism and patch, but provides no evidence of an incident tied to CVE-2026-135279.

CISA's KEV catalog version 2026.11.25 did not list this CVE. Our assessment of exploitation remains unknown; the catalog status is one dated input to prioritization.

Who is affected

Which @fastify/express Versions and Applications Are Affected?

The Fastify advisory and OpenJS CVE record list @fastify/express versions before 4.0.14 as affected. Exposure matters where an application mounts an Express Router or sub-application and relies on path-specific middleware to protect a Fastify handler. The vendor also identifies unanchored regular-expression mounts passed to the plugin.

Inspect the installed @fastify/express package version and how the application mounts authentication or other access-control middleware. A version at 4.0.10 still needs this update because that earlier fix covered a different code path. The vendor says the default router configuration is sufficient for this mismatch.

Use the installed package or lockfile version to identify affected deployments, then confirm the running application uses the patched package after release. Review route-level protection in the same change window; a fixed dependency alone does not validate application access-control behavior.

Timeline

  1. 2026-11-26

    OpenJS published the CVE record, and Fastify published its security advisory identifying @fastify/express 4.0.14 as the patched release.

What to do

  1. Inventory affected applications

    Find applications using @fastify/express below 4.0.14. Identify Express Router or sub-application mounts and unanchored regular-expression mounts that guard access to Fastify handlers.

  2. Upgrade the plugin

    Update @fastify/express to 4.0.14 or later. The Fastify advisory identifies 4.0.14 as the patched version for CVE-2026-135279.

  3. Verify the running version and authorization

    Confirm the deployed application loads @fastify/express 4.0.14 or later. Run authorized access-control tests for routes protected by Express middleware after the upgrade.

  4. Apply a temporary control if upgrade is delayed

    The vendor recommends authentication in a Fastify hook after routing, a static parent-path middleware mount, or a schema requiring non-empty route parameters. Validate the chosen control against the application's routes.

  5. Review relevant access

    Inspect access logs for unexpected requests to sensitive handlers and investigate any authorization mismatch. This is a defensive recommendation, not evidence of a confirmed incident.

What Brandefense can do

Frequently Asked Questions

Does @fastify/express 4.0.10 fix CVE-2026-135279?

No. Fastify says 4.0.10 covered a related bypass for paths passed directly to fastify.use(). This separate Router and sub-application path is fixed in 4.0.14.

What applications need review?

Review applications using @fastify/express before 4.0.14, especially those relying on path-specific middleware inside mounted Express Routers or sub-applications. Also review unanchored regular-expression mounts.

What is the fixed @fastify/express version?

Fastify lists @fastify/express 4.0.14 as patched. Upgrade to 4.0.14 or later and verify the version loaded by the running application.

Is exploitation confirmed?

The advisory describes a possible authentication bypass, while the documented evidence does not establish an incident. CISA KEV catalog version 2026.11.25 did not list this CVE.

Sources

  1. Fastify Express Router Middleware Bypass AdvisoryFastify via GitHub Security Advisories
  2. CVE-2026-135279 RecordOpenJS Foundation CNA via CVE Program
  3. Known Exploited Vulnerabilities Catalog FeedCISA
ShareLinkedInX
Brandefense logo

Stay Ahead of Digital Threats.

Take control of your digital security with an exclusive demo of our AI-driven threat intelligence platform.

Open The Full Demo Form →