CVE-2026-133867
published critical CVSS 3.1 · 9.1@fastify/express vulnerable to middleware bypass via RegExp mount paths under parameterized prefixes
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| @fastify/express | — | @fastify/express4.0.7 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.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.
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.7 to < 4.0.10 (affected · semver)4.0.10 (unaffected · semver)Default: unaffected | openjs · cna |
Weaknesses
2- CWE-287 CWE-287: Improper Authentication
- CWE-436 CWE-436: Interpretation Conflict
References
2Provider assertions
2openjs · cna
@fastify/express vulnerable to middleware bypass via RegExp mount paths under parameterized prefixes
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 739279250551bf2511bc100a787fc11e4c1860d5d1b2f8663e3e70871704b54d
- Ingested
- 23 Nov 2026, 20:22:19 UTC
- Source record
- Official CVE record