Home › CVE › Network devices
CVE-2026-129504 — @fastify/express
One of 5 @fastify/express vulnerabilities published together by NVD: our article covers all of them.
Network devicesVulnerabilitiesResearch article
CVE-2026-129504: Path Mismatch in @fastify/express Allows Unauthorized Access
| CVE | CVE-2026-129504 |
|---|---|
| Vendor and product | @fastify/express |
| Published | November 21, 2026 18:15 UTC |
| Research cut-off | November 21, 2026 17:40 UTC |
| Sources reviewed | 2: NVD record (last modified 2026-11-21); CISA KEV catalog |
Executive summary
CVE-2026-129504 impacts the @fastify/express package, enabling unauthenticated access to protected routes due to a path-scoped middleware issue. The CVSS 3.1 score is 9.1, CRITICAL, with no impact on availability. The reviewed sources do not report exploitation. Users are advised to upgrade to version 4.0.10 to address the risk [1].
Key points
- CVE-2026-129504 affects @fastify/express versions 4.0.0 through 4.0.9 [1].
- The vulnerability enables unauthenticated access to protected routes due to a path-scoped middleware issue [1].
- The CVSS 3.1 score is 9.1, CRITICAL, with no impact on availability [1].
- CVE-2026-129504 is not listed in the CISA Known Exploited Vulnerabilities Catalog [2].
- Users should upgrade to @fastify/express 4.0.10 to address the risk [1].
Vulnerability identification
| CVE ID | Vendor | Product | CWE | CVSS 3.1 | Published | Last Modified | Record Status |
|---|---|---|---|---|---|---|---|
| CVE-2026-129504 | Fastify | @fastify/express | CWE-436, CWE-863 | 9.1 CRITICAL, scored by ce714d77-add3-4f53-aff5-83d477b104bb | 2026-11-21T17:16:39 | 2026-11-21T17:16:39 | Received |
Vulnerability description
The @fastify/express package, when used with versions 4.0.0 through 4.0.9, improperly combines the mount path of path-scoped middleware with the Fastify plugin prefix using string concatenation. This causes a mismatch between the Fastify router and the Express middleware, so the middleware is silently skipped [1]. Consequently, protected routes may be accessible to unauthenticated users without requiring any special setup or crafted requests [1].
Attack surface and exploitation prerequisites
The CVSS vector indicates the vulnerability is accessible over the network (AV:N), requires no privilege (PR:N), and no user interaction is needed (UI:N). This issue arises when an app uses Express middleware that's scoped to specific paths for handling authentication or authorization inside a prefixed plugin [1].
Impact analysis
The CVSS vector shows the vulnerability has a high impact on confidentiality (C:H) and integrity (I:H), with no effect on availability (A:N). This can expose protected routes to unauthenticated clients [1].
Affected products and versions
| Affected | Fixed |
|---|---|
| @fastify/express ≥ 4.0.0, < 4.0.10 | 4.0.10 |
Exploitation and threat intelligence status
CVE-2026-129504 is not included in the CISA Known Exploited Vulnerabilities Catalog as of 2026-11-21, which does not confirm or deny exploitation. The reviewed sources do not report any exploitation [2].
Detection and exposure assessment
Users can determine if they are affected by checking the installed version of @fastify/express against the affected range [1]. There are no specific detection steps provided by the sources.
Remediation
The vulnerability is resolved in @fastify/express 4.0.10, and users are advised to upgrade to this version [1].
Remediation checklist
- Upgrade @fastify/express to version 4.0.10 [1].
- Check the installed version of @fastify/express against the affected range (general guidance).
- Monitor for unauthorized access to protected routes (general guidance, not stated in the sources).
Evidence gaps
- The sources do not describe the technical mechanics of the flaw [1].
- The sources do not mention any indicators of compromise [1].
- The sources do not provide any workarounds or compensating controls [1].
- The sources do not describe the internal workings of the affected component [1].
- The sources do not report any exploitation scenarios or attack lifecycle [1].
References
- CVE-2026-129504 record. NIST National Vulnerability Database (NVD), 2026-11-21. https://nvd.nist.gov/vuln/detail/CVE-2026-129504. Accessed 2026-11-21.
- Known Exploited Vulnerabilities Catalog. Cybersecurity and Infrastructure Security Agency (CISA), 2026-11-21. https://www.cisa.gov/known-exploited-vulnerabilities-catalog. Accessed 2026-11-21.
Summary
@fastify/express is a compatibility layer that lets Express middleware run inside the Fastify web framework. In versions 4.0.0 through 4.0.9, the plugin joins a path-scoped middleware's mount path to the Fastify plugin prefix by string concatenation, so when the plugin prefix ends with a slash or the mount path omits its leading slash, the resulting Express mount path does not line up with the route the Fastify router serves. Express then fails to match and passes the request on while the Fastify router still dispatches the route, so the middleware is silently skipped. An application that uses path-scoped Express middleware for authentication or authorization inside a prefixed plugin can expose protected routes to unauthenticated clients, with no crafted request and no non-default option required, and string, array, and regular-expression mount paths are all affected. The issue is fixed in @fastify/express 4.0.10, and users should upgrade to 4.0.10 or later.
Severity breakdown
Critical · 9.1
An attacker without an account can exploit this over the network, without any user action.
- Attack from
- the network (remotely)
- Attack complexity
- low (no special conditions)
- Login needed
- no
- User action needed
- no
- Scope
- stays within the vulnerable component
- Impact
- high on confidentiality and integrity, none on availability
Weakness
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| @fastify/express | ≥ 4.0.0, < 4.0.10 | 4.0.10 |
References by type
Vendor advisories
Other references
Affected
- @fastify/express
Frequently asked questions
What is CVE-2026-129504?
CVE-2026-129504 impacts the @fastify/express package, enabling unauthenticated access to protected routes due to a path-scoped middleware issue. The CVSS 3.1 score is 9.1, CRITICAL, with no impact on availability. The reviewed sources do not report exploitation. Users are advised to upgrade to version 4.0.10 to address the risk. Weakness type: Interpretation Conflict (CWE-436).
How severe is CVE-2026-129504?
CVE-2026-129504 has a CVSS 3.1 base score of 9.1 (critical), from the CNA. An attacker without an account can exploit this over the network, without any user action.
Is CVE-2026-129504 being exploited?
Not as far as is known: CVE-2026-129504 is not in CISA's Known Exploited Vulnerabilities catalog as of November 26, 2026. EPSS estimates a 0.5% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2026-129504?
@fastify/express ≥ 4.0.0, < 4.0.10 (fixed in 4.0.10).
How do I fix CVE-2026-129504?
Upgrade @fastify/express to version 4.0.10. Check the installed version of @fastify/express against the affected range (general guidance). Monitor for unauthorized access to protected routes (general guidance, not stated in the sources).