{"id":"CVE-2026-33807","published":"2026-04-15T09:52:26Z","modified":"2026-04-15T13:09:45Z","title":"@fastify/express vulnerable to middleware path doubling causing authentication bypass in child plugin scopes","vendor":"fastify","product":"@fastify/express","tier":"tail","description":{"text":"@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.\n\nUpgrade to @fastify/express v4.0.5 or later.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.1,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00447,"percentile":0.39752,"provenance":"source"},"cwes":[{"id":"CWE-436","name":"Interpretation Conflict"}],"references":[{"url":"https://github.com/fastify/fastify-express/security/advisories/GHSA-hrwm-hgmj-7p9c","tags":[]},{"url":"https://cna.openjsf.org/security-advisories.html","tags":[]}],"priority":{"score":14.3,"factors":[{"name":"EPSS percentile","points":7.95},{"name":"CVSS severity","points":6.37}]},"vendorSlug":"fastify","affectedVersions":[{"vendor":"fastify","product":"@fastify/express","versions":["< 4.0.5"]}],"fixedVersions":[{"vendor":"fastify","product":"@fastify/express","versions":["4.0.5"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2026-04-15T13:09:41.621709Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@fastify/express","vulnerableRanges":["<4.0.5"],"patched":["4.0.5"],"from":["GHSA-hrwm-hgmj-7p9c"],"provenance":"source"}],"summary":{"text":"In @fastify/express v4.0.4 and earlier, a path handling bug in the onRegister function causes middleware paths to be prefixed twice when inherited by child plugins, so the middleware never matches incoming requests. An unauthenticated network attacker can send ordinary requests to routes within affected child plugin scopes with no special configuration, user interaction, or request crafting required, bypassing Express middleware controls such as authentication, authorization, and rate limiting.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:34:39Z"},"euvd":{"id":"EUVD-2026-22880","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-fastify-fastify-express-cve-2026-33807","children":[{"from":"CVE-2026-33807","to":"CVE-2026-6270","relation":"related","confidence":"high","kind":"lineage","evidence":[{"kind":"osv-related","provenance":"source","id":"GHSA-hrwm-hgmj-7p9c","via":"related"},{"kind":"osv-related","provenance":"source","id":"GHSA-72c6-fx6q-fr5w","via":"reference","url":"https://github.com/fastify/fastify-express/security/advisories/GHSA-hrwm-hgmj-7p9c"}]}],"packageHistory":[{"cve":"CVE-2026-22037","published":"2026-01-19","fixed":"4.0.3","kev":false,"link":{"from":"CVE-2026-22037","to":"CVE-2026-33807","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@fastify/express","fromFixed":"4.0.3","toFixed":"4.0.5","daysApart":86}]}},{"cve":"CVE-2026-33807","published":"2026-04-15","fixed":"4.0.5","kev":false},{"cve":"CVE-2026-33808","published":"2026-04-15","fixed":"4.0.5","kev":false}],"package":"npm:@fastify/express"}}