CVE-2026-135280 Auth bypass in @fastify/express

Published Updated

Attackers can bypass path-scoped Express middleware in Fastify apps using case-insensitive routing, such as authentication, by using Unicode case-folding paths.

CVSS score

High

7.4/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-135280?

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

Official description

@fastify/express is the plugin that lets an application run Express middleware and Express applications inside the Fastify web framework. In versions before 4.0.14, when an application enables case-insensitive routing, middleware mounted on a path can still be skipped in two cases: a string mount path or plugin prefix containing a Unicode character whose case folding differs from a plain lowercase conversion fails to match the lowercased request path, and a matcher that stays case-sensitive inside an Express Router or application, such as a regular expression without the ignore-case flag or an explicitly case-sensitive router, only matches its own casing. In both cases a request reaches the Fastify route handler while the path-scoped middleware does not run. An attacker can use this to bypass authentication or other middleware-based access controls on the affected routes, and only applications that enable case-insensitive routing are affected. The issue is fixed in @fastify/express 4.0.14, and users should upgrade to 4.0.14 or later. As a workaround, enforce authentication in a Fastify hook such as preHandler that runs after routing, avoid such Unicode characters in mount paths, and match case-insensitively inside Express routers and applications.

Weakness: CWE-863, CWE-178

How severe is CVE-2026-135280?

CVE-2026-135280 scores 7.4 out of 10 under CVSS 3.1, which is high severity. It was scored by Openjs.

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

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

Which versions are affected by CVE-2026-135280?

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
All versions4.0.14

How do I fix CVE-2026-135280?

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-135280 being exploited?

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

Sources

Is CVE-2026-135280 in your software?

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

Check your SBOMs for free