Vulnerability 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.
CVSS Score
CRITICAL
Related Weaknesses (CWE)
References
- https://cna.openjsf.org/security-advisories.html
- https://github.com/fastify/fastify-express/security/advisories/GHSA-hrwm-hgmj-7p
- https://github.com/fastify/fastify-express/security/advisories/GHSA-hrwm-hgmj-7p
FAQ
What is CVE-2026-33807?
CVE-2026-33807 is a vulnerability with a CVSS score of 9.1 (CRITICAL). @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 registere...
How severe is CVE-2026-33807?
CVE-2026-33807 has been rated CRITICAL with a CVSS base score of 9.1/10. This is considered a critical vulnerability requiring immediate attention.
Is there a patch for CVE-2026-33807?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.