CVE-2026-33807: Vulnerability in fastify\/express
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 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,...
npm, CWE-436
- Exploitation
- None confirmed
- Severity
- 9.1 of 10
- Attack likelihood
- Unknown
- Fix
- Fixed version known
- Patch deadline
- No deadline set
Details
- Advisory ID
- GHSA-hrwm-hgmj-7p9c
- Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
- Weakness
- CWE-436
- Published
- 15 Apr 2026
- Last change
- 26 Oct 2026
- Ecosystem
- npm
Affected products
Affected versions and the first fixed release
- fastify\/express Before 4.0.5. Fixed in 4.0.5
Affected packages
Vulnerable version ranges and fixed releases
- @fastify/express npm, Affected through 4.0.4. Fixed in 4.0.5
Advisories
Vendor and security advisories
- github.com/fastify/fastify-express/security/advisories/GHSA-hrwm-hgmj-7p9c
- cna.openjsf.org/security-advisories.html
Related
- fastify\/express vulnerabilities Recent advisories, watch this product