Skip to main content

@fastify/express CVE-2026-133120

| EUVDEUVD-2026-132558 CRITICAL
Double Decoding of the Same Data (CWE-174)
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
    Craft request with encoded backslash, double-encoded percent, or leading asterisk
  2. Exploit
    Fastify router and Express normalize path differently
  3. Execution
    Path-scoped auth/authz/rate-limit middleware skipped
  4. Impact
    Protected route handler executes for unauthenticated client

Vulnerability Assessment

Weakness
CWE
Exploitation Conditions

Requires that the application run Express middleware through @fastify/express before version 4.0.10 AND rely on path-scoped middleware - mounted like app.use('/tenant/:id/admin', authMiddleware) - to enforce authentication, authorization, or rate limiting; no special configuration is otherwise needed and default deployments are affected. Exploitation is limited by which bypass applies: the backslash and double-percent decoding mismatches affect releases from 4.0.3 onward, while the asterisk-target (*) bypass affects every release including static mounts. The practical limiting factor is architectural - apps that enforce security in a Fastify preHandler/onRequest hook keyed on the matched route (request.routeOptions.url) rather than in path-scoped Express middleware are not exposed. Upgrading to 4.0.10 (which passes Express the router-matched path, rejects targets not starting with / with a 400, and keeps req.url query-encoded) is the complete fix per the advisory.

Impact

Multiple signals converge on genuine high priority. The supplied CVSS:3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N, 9.1) describes remote, low-complexity, unauthenticated exploitation requiring no user interaction, and the GHSA advisory confirms no special configuration is needed - the bypass works against default deployments that use path-scoped Express middleware for security. The vuln.today decision label is act_now, reinforcing urgency. However, key quantitative signals are absent: no EPSS probability is provided, and there is no CISA KEV entry, so active exploitation is NOT confirmed and widespread-versus-targeted exploitation cannot be judged from this data. No packaged proof-of-concept is listed either, but the GHSA advisory publishes exact trigger payloads (for example /tenant/x%5C%20/admin, /acct/%2561lice, and GET *admin), which sharply lowers the barrier to developing a working exploit despite the absence of a formal PoC flag. The low real-world effort to trigger a security-control bypass, combined with the act_now label, makes this a real priority rather than a high-CVSS-but-low-real-risk issue; the main uncertainty is exploitation telemetry (EPSS/KEV missing), not exploitability.

Exploit ScenarioDerived

An unauthenticated attacker sends a crafted request - such as a URL containing an encoded backslash plus whitespace (/tenant/x%5C%20/admin), a double-encoded percent sign (/acct/%2561lice), or a request target beginning with an asterisk (GET *admin) - to a route whose protection relies on path-scoped Express middleware (authentication, authorization, or rate limiting) running through @fastify/express before 4.0.10. Fastify's router and Express disagree on the resolved path, so the middleware is skipped while the route handler still executes, letting the attacker reach the protected handler without credentials. No packaged public exploit is identified at time of analysis, but the advisory itself documents concrete, reproducible trigger payloads.

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

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

Alert me

AnalysisAIv1 – Nov 21, 2026

Path-scoped Express middleware can be skipped while the Fastify route handler still executes in @fastify/express before 4.0.10, because the plugin hands Express a request URL that does not match the path Fastify's find-my-way router dispatched. Unauthenticated remote attackers can therefore reach handlers that authentication, authorization or rate-limiting middleware was meant to guard - for example a mount such as app.use('/tenant/:id/admin', authMiddleware) - with no special configuration required on default deployments, yielding high confidentiality and integrity impact. The backslash and double-percent decoding variants affect releases from 4.0.3 onward, while a request target beginning with * (for example GET *admin) bypasses every prior release, including static mounts; no public exploit code was identified at time of analysis, but the disclosed trigger forms make the bypass straightforward to reproduce.

RemediationAI

Vendor-released patch: upgrade @fastify/express to 4.0.10 or later, which passes Express the path the router actually matched, rejects request targets that do not start with / with a 400, keeps the query string encoded in req.url, and matches RegExp mount paths against the percent-encoded path as Express does - upgrading is the complete fix per the advisory (GHSA-w877-hjcp-88rc, https://github.com/fastify/fastify-express/security/advisories/GHSA-w877-hjcp-88rc). If upgrading cannot be done immediately, the advisory's workaround is to enforce authentication in a Fastify hook such as preHandler that runs after the router has resolved the request, basing the decision on the matched route (request.routeOptions.url) rather than on Express path mounts; note this shifts where the security decision lives and only protects handlers covered by that hook. To block only the two described bypasses, reject request targets that start with * or whose path contains a backslash in an onRequest hook registered before @fastify/express, accepting that such requests are refused rather than served.

Affected VersionsENISA

@fastify/express 0 <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

The flaw is an interpretation conflict (CWE-436) rooted in double/rewritten percent-decoding (CWE-174) between two routers stacked in one process: Fastify's find-my-way router decides which route is dispatched, while Express separately parses req.url to decide which path-scoped middleware mounts match. Since 4.0.3 the plugin percent-decodes the URL before Express parses it, so a backslash combined with whitespace or # (for instance /tenant/x%5C%20/admin) causes Express to rewrite \ to / and miss parameterized, prefixed and RegExp mounts; %25 is decoded twice, so middleware and handler disagree on parameter and query values (/acct/%2561lice yields alice in middleware but %61lice in the handler). Independently of version, a request target starting with * (e.g. GET *admin) is routed to /admin by Fastify while Express matches no mount on /admin, skipping static mounts as well. The result is that the component enforcing the security decision (Express middleware) and the component executing the business logic (the route handler) resolve different paths or parameter values. The CVSS vector (AV:N/AC:L/PR:N/UI:N) confirms the attack is remote and unauthenticated, which is precisely what makes a skipped authentication middleware meaningful; the trigger requires the application to enforce security in path-scoped Express middleware rather than in a Fastify hook keyed on the matched route.

Know when the next one hits your stack

  • 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

Remote, unauthenticated, no interaction and no config needed (AV:N/AC:L/PR:N/UI:N); bypassing security middleware exposes protected handlers that can read and modify state, so C:H/I:H, A:N with no scope change.

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 - 19: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 before 4.0.10, the plugin passes Express a request URL that does not always match the path Fastify's router dispatched, so path-scoped Express middleware can be skipped while the route handler still runs. Several request forms trigger the mismatch, including percent-decoding that rewrites a backslash to a slash or double-decodes an encoded percent sign, and a request target that begins with an asterisk, so the middleware and the handler disagree on the path or on parameter and query values. An unauthenticated client can therefore reach a handler that an authentication, authorization, or rate-limiting middleware was meant to protect, with no special configuration required. The issue is fixed in @fastify/express 4.0.10, and users should upgrade to 4.0.10 or later.

Technical POC Analysis

The flaw is an interpretation conflict between Fastify's find-my-way router and Express's request URL handling (CWE-436), with one trigger being double percent-decoding (CWE-174).

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-133120 is a critical vulnerability in the @fastify/express middleware integration (versions before 4.0.10) that allows unauthenticated attackers to bypass authentication and authorization controls by crafting malicious request paths. Any organization using Fastify with Express middleware to protect sensitive routes-particularly multi-tenant applications relying on path-based middleware-is exposed to unauthorized access, data breaches, and integrity compromise, with no patch currently available.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations include enforcing request URL validation via a global Fastify hook, configuring WAF rules to block paths with backslashes, double-encoding, or leading asterisks, disabling the @fastify/express plugin if not operationally required, and adding secondary authentication and authorization checks within route handlers.

Threat Intelligence Overview

EPSS Score
0.6%
Top 51% exploitable
Prevalence
Low
niche Fastify-to-Express compatibility shim, limited production footprint versus core Fastify
Social Media
2
Sightings
Data Quality
6 sources
Confidence: High

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.6%
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· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

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

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

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