Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › CVE › Network devices

CVE-2026-135270 — @fastify/express

High · CVSS 7.4 First seen November 26, 2026

One of 5 @fastify/express vulnerabilities published together by NVD: our article covers all of them.

Network devicesVulnerabilities

Summary

@fastify/express is the plugin that lets an application run Express middleware and Express applications inside the Fastify web framework. In versions from 4.0.5 before 4.0.14, a mount path that begins with an Express 5 optional leading segment written as a group is treated as relative and has a slash prepended when it is joined to the plugin prefix, which changes what the pattern matches so the middleware ends up mounted on a path that no longer corresponds to the real request paths. The middleware therefore never runs for requests that match the intended routes, while the Fastify routes still resolve to their handlers. An attacker can use this to bypass authentication or other middleware-based access controls on the affected routes. The issue is fixed in @fastify/express 4.0.14, and users should upgrade to 4.0.14 or later. As a workaround, mount the middleware on each path spelling explicitly, or enforce authentication in a Fastify hook such as preHandler that runs after the router resolves the request.

Description: NIST National Vulnerability Database (public domain)

Severity breakdown

High · 7.4 CVSS 3.1 base score from the CNA

An attacker without an account can exploit this over the network, without any user action, but only under specific conditions.

Attack from
the network (remotely)
Attack complexity
high (only works under specific conditions)
Login needed
no
User action needed
no
Scope
stays within the vulnerable component
Impact
high on confidentiality and integrity, none on availability

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

Weakness

Affected and fixed versions

ProductAffected versionsFixed in
@fastify/express≥ 4.0.5, < 4.0.144.0.14

From the vendor's CVE record; confirm with the vendor advisory before relying on a version number.

References by type

Vendor advisories

Other references

Details from NVD (public domain).

Affected

  • @fastify/express

What to do

  • Check whether you run an affected product or version and apply the vendor's update or mitigation.
  • Follow the vendor advisory and the references below for fixed versions and workarounds.

Frequently asked questions

What is CVE-2026-135270?

@fastify/express is the plugin that lets an application run Express middleware and Express applications inside the Fastify web framework. In versions from 4.0.5 before 4.0.14, a mount path that begins with an Express 5 optional leading segment written as a group is treated as relative and has a slash prepended when it is joined to the plugin prefix, which changes what the pattern matches so the middleware ends up… Weakness type: Interpretation Conflict (CWE-436).

How severe is CVE-2026-135270?

CVE-2026-135270 has a CVSS 3.1 base score of 7.4 (high), from the CNA. An attacker without an account can exploit this over the network, without any user action, but only under specific conditions.

Is CVE-2026-135270 being exploited?

Not as far as is known: CVE-2026-135270 is not in CISA's Known Exploited Vulnerabilities catalog as of November 26, 2026.

Which versions are affected by CVE-2026-135270?

@fastify/express ≥ 4.0.5, < 4.0.14 (fixed in 4.0.14).

How do I fix CVE-2026-135270?

Update to a fixed release: @fastify/express 4.0.14.

Timeline & sources

References