CVE-2026-33807
published critical CVSS 3.1 · 9.1@fastify/express vulnerable to middleware path doubling causing authentication bypass in child plugin scopes
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| fastify | — | @fastify/express0 to < 4.0.5 (affected · semver) · 4.0.5 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | openjs |
Description
@fastify/express v4.0.4 and earlier contains a path handling bug in the onRegister function that causes middleware paths to be doubled when inherited by child plugins. When a child plugin is registered with a prefix that matches a middleware path, the middleware path is prefixed a second time, causing it to never match incoming requests. This results in complete bypass of Express middleware security controls, including authentication, authorization, and rate limiting, for all routes defined within affected child plugin scopes. No special configuration or request crafting is required. Upgrade to @fastify/express v4.0.5 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 | @fastify/express | 0 to < 4.0.5 (affected · semver)4.0.5 (unaffected · semver)Default: unaffected | openjs · cna |
Weaknesses
1- CWE-436 CWE-436: Interpretation Conflict
References
2Provider assertions
2openjs · cna
@fastify/express vulnerable to middleware path doubling causing authentication bypass in child plugin scopes
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- dbdde05d878f571375999e3dfa0867f6175922ba2b81c1ec849dac2f0419e990
- Ingested
- 23 Sep 2026, 09:10:54 UTC
- Source record
- Official CVE record