CVE-2026-133867 @fastify/express vulnerable to middleware bypass via RegExp mount paths under parameterized prefixes

Published Updated

Express middleware using regexes under parameterized prefixes in Fastify apps may skip authentication, exposing protected routes to unauthenticated clients.

CVSS score

Critical

9.1/10

CVSS 3.1 · Scored by Openjs Breakdown
Exploited in the wild
Not known
Not in CISA's KEV catalogue
Exploit code
None known
No public exploit found
Fix
None listed
No fixed version published
Attack path
Over the internet
No login, no user action

What is CVE-2026-133867?

CVE-2026-133867 is a critical authentication bypass vulnerability in @fastify/express, published on 21 Nov 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

@fastify/express is a compatibility layer that lets Express middleware run inside the Fastify web framework. In versions 4.0.7 through 4.0.9, the plugin does not rewrite regular-expression mount paths to account for a parameterized plugin prefix, so when middleware is mounted with a regular expression inside a plugin registered under a parameterized prefix, the Express matcher treats the prefix parameter as literal text and never matches the real request path. As a result, Express silently skips that middleware while Fastify still runs the route handler, so an application that relies on regular-expression mounted middleware for authentication or authorization inside a parameterized-prefix plugin exposes protected routes to unauthenticated clients. No special configuration is required beyond a parameterized prefix and a regular-expression mount. The issue is fixed in @fastify/express 4.0.10, and users should upgrade to 4.0.10 or later.

Weakness: CWE-436, CWE-287

How severe is CVE-2026-133867?

CVE-2026-133867 scores 9.1 out of 10 under CVSS 3.1, which is critical severity. It was scored by Openjs.

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Which versions are affected by CVE-2026-133867?

1 open source package ship an affected version, including %40fastify/express.

An affected version is only exploitable if your software uses the vulnerable function or option. Many projects that include it are not exposed.

PackageAffectedFixed in
%40fastify/express npm
pkg:npm/%40fastify/express
From 4.0.74.0.10

How do I fix CVE-2026-133867?

Upgrade each affected package to the fixed version listed for it above. Each package has its own fixed versions.

Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.

Is CVE-2026-133867 being exploited?

There is no known exploitation of CVE-2026-133867 in the wild and no public exploit code.

Sources

Also known as GHSA-84w6-xrf3-f8q8.

Is CVE-2026-133867 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free