Skip to main content

fastify-express EUVDEUVD-2026-132185

| CVE-2026-133867 CRITICAL
Improper Authentication (CWE-287)
2026-11-21 ce714d77-add3-4f53-aff5-83d477b104bb
9.1
CVSS 3.1 · Vendor: ce714d77-add3-4f53-aff5-83d477b104bb
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Send request to protected route under parameterized prefix
  2. Exploit
    RegExp prefix param treated as literal, Express matcher never matches
  3. Execution
    Auth/authz middleware silently skipped while Fastify runs handler
  4. Impact
    Unauthenticated access to protected route

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Authentication mechanism validation
MITRE ATT&CK

2 techniques across 2 tactics: Defense Evasion, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires a specific but default-router application pattern: a Fastify plugin registered under a parameterized prefix (e.g. /tenant/:tenantId) in which Express middleware is mounted with a RegExp mount path (e.g. app.use(/^\/private/, authMiddleware)) and that middleware enforces authentication or authorization. No special configuration beyond the parameterized prefix plus RegExp mount is needed - default Express router settings suffice. Limiting factors that reduce real-world exposure: the version must be 4.0.7-4.0.9; applications using string mount paths, non-parameterized prefixes, or enforcing auth in a Fastify preHandler hook are not affected; and the flaw only matters where RegExp-mounted middleware is the security control. An attacker needs no authentication and no user interaction once such a configuration exists.

Impact

Multiple signals point the same direction but with an important caveat. The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N) describes a network-reachable, low-complexity, unauthenticated authentication bypass with high confidentiality and integrity impact (9.1), and the vuln.today Decision label is act_now, so this should be treated as a near-term priority for anyone running an affected configuration. However, the exploitability is gated by a specific application pattern rather than being universally reachable: only apps that mount Express middleware via a RegExp under a parameterized-prefix Fastify plugin AND rely on that middleware for authentication/authorization are actually exposed. No EPSS score was provided in the input, the CVE is NOT listed in CISA KEV, and no working public exploit code is referenced (only the GHSA/NVD advisory pages), so there is no evidence of active or widespread exploitation - exploitation status is best characterized as no public exploit identified at time of analysis. Net: this is a genuine high-severity auth bypass for the narrow set of deployments that match the vulnerable pattern, but the missing EPSS and absence of KEV/PoC mean urgency should be driven by whether your own code uses RegExp-mounted auth middleware under a parameterized prefix, not by observed in-the-wild activity.

Exploit ScenarioDerived

An application runs @fastify/express 4.0.7-4.0.9 and registers a plugin under a parameterized prefix such as /tenant/:tenantId, mounting authentication middleware with a RegExp like app.use(/^\/private/, authMiddleware). Because the plugin prefix is treated as literal text, the Express matcher expects a literal ':tenantId' and never matches a real URL such as /tenant/acme/private, so Express silently skips the auth middleware while Fastify still runs the route handler. A remote attacker simply sends an HTTP request to the protected route and reaches it unauthenticated; no working public exploit code is identified, only the vendor advisory.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.7% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 21, 2026

In @fastify/express 4.0.7 through 4.0.9, authentication or authorization middleware mounted with a RegExp path inside a Fastify plugin registered under a parameterized prefix (for example /tenant/:tenantId) is silently skipped while the Fastify route handler still executes, letting unauthenticated remote clients reach routes the application believed were protected. The assessed vector is CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N (9.1), so no credentials and no user interaction are needed once such a configuration exists, and the failure is a fail-open bypass rather than a crash or data corruption. The flaw is fixed in 4.0.10; it is tracked as act-now priority, and no public exploit code has been identified at time of analysis, with no confirmation of active exploitation.

RemediationAI

Vendor-released patch: @fastify/express 4.0.10 or later - upgrade the dependency and rebuild/redeploy so the RegExp mount is rewritten against the expanded parameterized prefix. If an immediate upgrade is not possible, the advisory offers two workarounds: enforce authentication in a Fastify hook such as preHandler that runs after the router resolves the request (trade-off: the control moves out of the Express middleware layer, so any route relying solely on the Express mount remains unprotected until that hook is written and verified), or eliminate the triggering pattern by using a string mount path instead of a RegExp, or by moving the parameter out of the plugin prefix (trade-off: requires routing or URL-structure changes in the application and re-testing of every affected plugin). Updating to 4.0.10 remains the only complete fix, since the workarounds depend on the application correctly re-implementing the control; after upgrading, verify that RegExp-mounted middleware actually fires under parameterized prefixes in a test deployment. Advisory links: https://github.com/fastify/fastify-express/security/advisories/GHSA-84w6-xrf3-f8q8 and https://cna.openjsf.org/security-advisories.html.

Affected VersionsENISA

@fastify/express 4.0.7 <4.0.10

Affected Packages

euvd fastify_express fix: 4.0.10

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

@fastify/express is a compatibility layer that lets Express-style middleware run inside Fastify, and this defect sits at the seam between the two frameworks' routing semantics. Fastify encapsulates plugins and expands a registered prefix such as /tenant/:tenantId into a parameterized route at request-dispatch time, but the plugin builds the Express matcher from the raw prefix string, so when middleware is mounted with a RegExp (for example app.use(/^\/private/, authMiddleware)) the matcher is compiled against the literal text ":tenantId" rather than a concrete segment such as "acme". Express therefore never matches the mount against the real URL and drops the middleware without warning, while Fastify, which resolved the prefix correctly, proceeds to the route handler - a silent fail-open. The advisory classifies this as CWE-287 (improper authentication) with an additional CWE-436 (interpretation conflict) framing, which is the accurate way to read it: two routers disagree on what a path means, and the security control is the component that loses. There is no memory-safety dimension and no race in the described mechanism; per the assessed vector the attack is network-reachable with low complexity, and the only prerequisites are the deployment pattern - @fastify/express 4.0.7 to 4.0.9, a parameterized plugin prefix, a RegExp mount path, and reliance on that middleware for authentication or authorization - using default router settings. Applications that mount with string paths, use non-parameterized prefixes, or enforce auth in a Fastify preHandler hook are outside the affected pattern.

Know when Fastify gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (ce714d77-add3-4f53-aff5-83d477b104bb) PRIMARY 9.1 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
vuln.today AI 9.1 CRITICAL

Remotely reachable auth-bypass needing no authentication or user interaction; attacker just sends requests to protected routes, yielding high confidentiality/integrity impact and no availability impact.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (ce714d77-add3-4f53-aff5-83d477b104bb).

CVSS VectorVendor: ce714d77-add3-4f53-aff5-83d477b104bb

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

Lifecycle Timeline

2
Patch available
Nov 21, 2026 - 18:02 EUVD
CVE Published
Nov 21, 2026 - 17:16 cve.org
CRITICAL 9.1

DescriptionCVE.org

@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.

Technical POC Analysis

Bug class: CWE-287 (Improper Authentication).

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

CVE-2026-133867 is a critical authentication bypass in @fastify/express versions 4.0.7 through 4.0.9 that can silently disable authentication or authorization middleware for certain route configurations, allowing unauthenticated remote clients to access routes thought to be protected. Organizations using these versions for web applications or APIs are affected, exposing sensitive data and functionality to unauthorized access without any credentials. Leadership should be concerned because this fail-open flaw undermines access controls and could lead to data breaches or unauthorized actions, though no exploit code or active exploitation has been identified yet.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations include: avoiding RegExp paths for authentication middleware within parameterized prefix plugins by using exact paths or different mounting strategies; adding network-level authentication (e.g., API gateways, reverse proxies) for affected routes; and monitoring for unauthorized access attempts.

Threat Intelligence Overview

EPSS Score
0.7%
Top 48% exploitable
Prevalence
Low
niche Fastify-to-Express compatibility shim; vulnerable pattern is narrow
Social Media
2
Sightings
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.7%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Total

Priority Score

47
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +46
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

CVE-2023-31999 HIGH POC
8.8 Jul 04

All versions of @fastify/oauth2 used a statically generated state parameter at startup time and were used across all req

CVE-2021-22964 HIGH POC
8.8 Oct 14

A redirect vulnerability in the `fastify-static` module version >= 4.2.4 and < 4.4.1 allows remote attackers to redirect

CVE-2025-32442 HIGH POC
7.5 Apr 18

Fastify is a fast and low overhead web framework, for Node.js. Rated high severity (CVSS 7.5), this vulnerability is rem

CVE-2020-8136 HIGH POC
7.5 Mar 20

Prototype pollution vulnerability in fastify-multipart < 1.0.5 allows an attacker to crash fastify applications parsing

CVE-2018-3711 HIGH POC
7.5 Jun 07

Fastify node module before 0.38.0 is vulnerable to a denial-of-service attack by sending a request with "Content-Type: a

CVE-2020-8192 MEDIUM POC
6.5 Jul 30

A denial of service vulnerability exists in Fastify v2.14.1 and v3.0.0-rc.4 that allows a malicious user to trigger reso

CVE-2021-22963 MEDIUM POC
6.1 Oct 14

A redirect vulnerability in the fastify-static module version < 4.2.4 allows remote attackers to redirect users to arbit

CVE-2026-6556 CRITICAL
9.1 Jun 30

Authorization bypass in the @fastify/express middleware-compatibility plugin (versions 4.0.6 and earlier) lets unauthent

CVE-2026-33808 CRITICAL
9.1 Apr 15

Authentication bypass in @fastify/express v4.0.4 and earlier allows remote unauthenticated attackers to access protected

CVE-2026-33807 CRITICAL
9.1 Apr 15

Middleware bypass in Fastify Express plugin (fastify/express) allows complete circumvention of authentication, authoriza

CVE-2022-41919 HIGH
8.8 Nov 22

Fastify is a web framework with minimal overhead and plugin architecture. Rated high severity (CVSS 8.8), this vulnerabi

CVE-2026-2880 HIGH
8.2 Feb 27

Authentication and authorization bypass in @fastify/middie (Node.js middleware library for Fastify) allows remote unauth

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy