CVE-2026-135270
Last modified
CVE-2026-135270 is a high-severity vulnerability rated 7.4/10 on the CVSS scale. @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.
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.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.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| @fastify/express | @fastify/express | >= 4.0.5, < 4.0.14 |
References
Timeline
- Published
- Last Modified
- Status
- Received
Frequently Asked Questions
What is CVE-2026-135270?
How severe is CVE-2026-135270?
How do I fix CVE-2026-135270?
How Strix Helps
- Uncovering a hidden BOLA in Appsmith's snapshot logicStrix autonomously discovered a BOLA/IDOR vulnerability in Appsmith's snapshot deletion path.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-135262MISP contains a DOM-based cross-site scripting (XSS) vulnera…6.2
- CVE-2026-135264@fastify/express is the plugin that lets an application run …7.4
- CVE-2026-135266The Music Player for WooCommerce plugin for WordPress is vul…7.5
- CVE-2026-135267The Relevanssi – A Better Search plugin for WordPress is vul…6.4
- CVE-2026-135269The WPC Linked Variation for WooCommerce plugin for WordPres…6.4
- CVE-2026-13527A vulnerability has been found in SourceCodester Class and E…7.3
- CVE-2026-135271In JetBrains Kotlinx.serialization before 1.12.0 a DoS attac…3.7
- CVE-2026-135272In JetBrains Kotlinx-io before 0.9.3 information disclosure …3.3
- CVE-2026-135278A vulnerability has been identified in Mendix Runtime V10 (A…5.4
- CVE-2026-135279@fastify/express is the plugin that lets an application run …9.1
- CVE-2026-13528A vulnerability was found in YunaiV/zhijiantianya ruoyi-vue-…7.3
- CVE-2026-135280@fastify/express is the plugin that lets an application run …7.4
Are you affected by CVE-2026-135270?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
