CVE-2026-129504
published critical CVSS 3.1 · 9.1@fastify/express vulnerable to path-scoped middleware bypass via prefix and mount path join mismatch
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| @fastify/express | — | @fastify/express4.0.0 to < 4.0.10 (affected · semver) · 4.0.10 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | openjs |
Description
@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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.1 / 10
- Severity
- critical
- Provider
- openjs · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| @fastify/express | @fastify/express | 4.0.0 to < 4.0.10 (affected · semver)4.0.10 (unaffected · semver)Default: unaffected | openjs · cna |
Weaknesses
2- CWE-436 CWE-436: Interpretation Conflict
- CWE-863 CWE-863: Incorrect Authorization
References
2Provider assertions
2openjs · cna
@fastify/express vulnerable to path-scoped middleware bypass via prefix and mount path join mismatch
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- a978e7c06beb1c3f4b65edcb3fdb42a68913041d174289670e10abf3aff3eeba
- Ingested
- 23 Nov 2026, 20:22:19 UTC
- Source record
- Official CVE record