@fastify/express vulnerable to middleware authentication bypass via URL normalization…
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- Present
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub.
Summary
Impact@fastify/express v4.0.4 and earlier fails to normalize URLs before passing them to Express middleware when Fastify router normalization options are enabled. This allows complete bypass of path-scoped authentication middleware via duplicate slashes when ignoreDuplicateSlashes is enabled, or via semicolon delimiters when useSemicolonDelimiter is enabled. In both cases, Fastify router normalizes the URL and matches the route, but @fastify/express passes the original un-normalized URL to Express middleware, which fails to match and is skipped. An unauthenticated attacker can access protected routes by manipulating the URL path. PatchesUpgrade 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-6hw5-45gm-fj88 |
- @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-6hw5-45gm-fj88
Remediation
- Fix · CNA @fastify/express (fastify) Fixed in 4.0.5
- Fix · GHSA-6hw5-45gm-fj88 @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-26179 @fastify/express vulnerable to middleware path doubling causing authentication bypass in child plugin scopesPriority HIGH 80
Timeline
- 2026-10-02 Threatist record created from CVE-2026-33808
- 2026-10-03 Alias added: GHSA-6hw5-45gm-fj88
References
More Fastify/express vulnerabilities
- TI-2026-26179 @fastify/express vulnerable to middleware path doubling causing authentication bypass in child plugin scopes CVSS 3.1CRITICAL 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-33808 · CVE Program
- CVE-2026-33808 · NVD
- FIRST EPSS
- GHSA-6hw5-45gm-fj88 · 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