CVE-2026-124626: @fastify/express - Authentication Bypass
- Cve: CVE-2026-124626
- Name: @fastify/express - Authentication Bypass
- Description: @fastify/express is a compatibility layer that lets Express middleware run inside the Fastify web framework. In versions 4.0.5 through 4.0.9, the plugin matches path-scoped Express middleware with a matcher that requires a non-empty value for a dynamic segment, while Fastify's router accepts an empty parameter or wildcard value. When a route and an Express middleware mount share a dynamic pattern, a request with an empty segment matches the Fastify route and runs the handler while the middleware mounted on that pattern is skipped, so on a scoped mount an unauthenticated request can reach a protected handler. No special configuration is required, and the practical impact depends on what the empty value selects in the application. The issue is fixed in @fastify/express 4.0.10, and users should upgrade to 4.0.10 or later.
- Impact: Unauthenticated attackers can reach protected handlers, potentially bypassing authentication and accessing sensitive functionality.
- Remediation: Upgrade to @fastify/express 4.0.10 or later.
- Vulnerability type: broken_authentication
- Requirement type: none
- Labels source: securitycontext
- Severity: critical
- Cvss score: 9.1
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
- Epss score: 0.00792
- Epss percentile: 0.57083
- Assignee: ce714d77-add3-4f53-aff5-83d477b104bb
- Published at: 2026-11-21T17:16:39Z
- Age in days: 3
- Modified at: 2026-11-23T21:16:52Z
- Patch available: yes
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-124626
- Nvd status: awaiting_analysis
- Checked, none or zero: vulnerability impact, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-287 | Improper Authentication |
References
| Url | Source | Tags |
|---|---|---|
| https://cna.openjsf.org/security-advisories.html | nvd | |
| https://github.com/fastify/fastify-express/security/advisories/GHSA-662w-h4p6-jq4p | nvd |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| fastify:fastify/express | >= 4.0.5, < 4.0.10 | no | cna_alias | /v1/products/fastify/fastify/express |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| fastify/fastify-express | fix, security_advisory | yes | /v1/repositories/fastify/fastify-express |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts