Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend request to protected route under parameterized prefix
-
ExploitRegExp prefix param treated as literal, Express matcher never matches
-
ExecutionAuth/authz middleware silently skipped while Fastify runs handler
-
ImpactUnauthenticated 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
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.
Primary rating from Vendor (ce714d77-add3-4f53-aff5-83d477b104bb).
CVSS VectorVendor: ce714d77-add3-4f53-aff5-83d477b104bb
Lifecycle Timeline
2DescriptionCVE.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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
All versions of @fastify/oauth2 used a statically generated state parameter at startup time and were used across all req
A redirect vulnerability in the `fastify-static` module version >= 4.2.4 and < 4.4.1 allows remote attackers to redirect
Fastify is a fast and low overhead web framework, for Node.js. Rated high severity (CVSS 7.5), this vulnerability is rem
Prototype pollution vulnerability in fastify-multipart < 1.0.5 allows an attacker to crash fastify applications parsing
Fastify node module before 0.38.0 is vulnerable to a denial-of-service attack by sending a request with "Content-Type: a
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
A redirect vulnerability in the fastify-static module version < 4.2.4 allows remote attackers to redirect users to arbit
Authorization bypass in the @fastify/express middleware-compatibility plugin (versions 4.0.6 and earlier) lets unauthent
Authentication bypass in @fastify/express v4.0.4 and earlier allows remote unauthenticated attackers to access protected
Middleware bypass in Fastify Express plugin (fastify/express) allows complete circumvention of authentication, authoriza
Fastify is a web framework with minimal overhead and plugin architecture. Rated high severity (CVSS 8.8), this vulnerabi
Authentication and authorization bypass in @fastify/middie (Node.js middleware library for Fastify) allows remote unauth
EUVD-2026-132185
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB