@fastify/express vulnerable to middleware path doubling causing authentication bypass in child plugin scopes
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub.
Summary
@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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| fastify | @fastify/express | before 4.0.5 | 4.0.5 | Patch available | CNA |
| — | @fastify/express (npm) | before 4.0.5 | 4.0.5 | Patch available | GHSA-hrwm-hgmj-7p9c |
- @fastify/express Vendorfastify Affected before 4.0.5 Fixed in 4.0.5 Patch available CNA
- @fastify/express (npm) Vendor— Affected before 4.0.5 Fixed in 4.0.5 Patch available GHSA-hrwm-hgmj-7p9c
Remediation
- Fix · CNA @fastify/express (fastify) Fixed in 4.0.5
- Fix · GHSA-hrwm-hgmj-7p9c @fastify/express (npm) Fixed in 4.0.5 Advisory →
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
fastify @fastify/express 4.0.5
2 records Highest priority Priority HIGH 2 HIGH
Other records, highest priority first
- TI-2026-26180 @fastify/express vulnerable to middleware authentication bypass via URL normalization…Priority HIGH 80
Timeline
- 2026-10-02 Threatist record created from CVE-2026-33807
- 2026-10-03 Alias added: GHSA-hrwm-hgmj-7p9c
References
More Fastify/express vulnerabilities
- TI-2026-26180 @fastify/express vulnerable to middleware authentication bypass via URL normalization… CVSS 4.0CRITICAL 9.1
- TI-2026-05746 @fastify/express vulnerable to middleware bypass via non-string mount paths in prefixed plugins CVSS 3.1CRITICAL 9.1
Sources
- CVE-2026-33807 · CVE Program
- CVE-2026-33807 · NVD
- FIRST EPSS
- GHSA-hrwm-hgmj-7p9c · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences