7.4
HIGH CVSS 3.1
CVE-2026-135230
@fastify/express vulnerable to RegExp middleware bypass via encoded line terminators
Description

@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.3 before 4.0.14, the plugin decodes certain percent-encoded characters in the request path that Express would otherwise keep encoded, including the Unicode line separator and paragraph separator characters, and leaves them raw. A JavaScript regular expression treats those two characters as line terminators, so a regular-expression mount path that relies on the dot metacharacter fails to match a request containing them while Fastify's own router still routes the request to its handler, and the middleware mounted on that regular-expression path is therefore skipped. An attacker can use this to bypass authentication or other middleware-based access controls on routes guarded by a regular-expression mount; string mount paths are not affected. The issue is fixed in @fastify/express 4.0.14, and users should upgrade to 4.0.14 or later. As a workaround, use string mount paths, avoid the dot metacharacter in regular-expression mounts by using a character class or the dotAll flag, or enforce authentication in a Fastify hook such as preHandler that runs after the router resolves the request.

INFO

Published Date :

Nov. 26, 2026, 5:17 p.m.

Last Modified :

Nov. 26, 2026, 5:17 p.m.

Remotely Exploit :

No

Source :

ce714d77-add3-4f53-aff5-83d477b104bb
Affected Products

The following products are affected by CVE-2026-135230 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

No affected product recoded yet

CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 HIGH ce714d77-add3-4f53-aff5-83d477b104bb
CVSS 3.1 HIGH MITRE-CVE
Solution
Upgrade @fastify/express to 4.0.14 or later to fix path handling issues.
  • Upgrade @fastify/express to version 4.0.14 or later.
  • Use string mount paths instead of regex.
  • Avoid dot metacharacter in regex mounts.
  • Enforce auth in Fastify hooks.
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2026-135230.

URL Resource
https://cna.openjsf.org/security-advisories.html
https://github.com/fastify/fastify-express/security/advisories/GHSA-x6w9-3qcm-vp2j
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-135230 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-135230 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2026-135230 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • New CVE Received by ce714d77-add3-4f53-aff5-83d477b104bb

    Nov. 26, 2026

    Action Type Old Value New Value
    Added Description @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.3 before 4.0.14, the plugin decodes certain percent-encoded characters in the request path that Express would otherwise keep encoded, including the Unicode line separator and paragraph separator characters, and leaves them raw. A JavaScript regular expression treats those two characters as line terminators, so a regular-expression mount path that relies on the dot metacharacter fails to match a request containing them while Fastify's own router still routes the request to its handler, and the middleware mounted on that regular-expression path is therefore skipped. An attacker can use this to bypass authentication or other middleware-based access controls on routes guarded by a regular-expression mount; string mount paths are not affected. The issue is fixed in @fastify/express 4.0.14, and users should upgrade to 4.0.14 or later. As a workaround, use string mount paths, avoid the dot metacharacter in regular-expression mounts by using a character class or the dotAll flag, or enforce authentication in a Fastify hook such as preHandler that runs after the router resolves the request.
    Added CVSS V3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
    Added CWE CWE-185
    Added CWE CWE-436
    Added Affected New affected value received. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2026/135xxx/CVE-2026-135230.json">CVE-2026-135230</a>
    Added Reference https://cna.openjsf.org/security-advisories.html
    Added Reference https://github.com/fastify/fastify-express/security/advisories/GHSA-x6w9-3qcm-vp2j
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.