{"id":"CVE-2026-6270","published":"2026-04-16T13:44:46Z","modified":"2026-04-16T14:24:26Z","title":"@fastify/middie vulnerable to middleware authentication bypass in child plugin scopes","vendor":"@fastify/middie","product":"@fastify/middie","tier":"tail","description":{"text":"@fastify/middie versions 9.3.1 and earlier do not register inherited middleware directly on child plugin engine instances. When a Fastify application registers authentication middleware in a parent scope and then registers child plugins with @fastify/middie, the child scope does not inherit the parent middleware. This allows unauthenticated requests to reach routes defined in child plugin scopes, bypassing authentication and authorization checks. Upgrade to @fastify/middie 9.3.2 to fix this issue. There are no workarounds.","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.00507,"percentile":0.4418,"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://github.com/fastify/middie/security/advisories/GHSA-72c6-fx6q-fr5w","tags":[]},{"url":"https://cna.openjsf.org/security-advisories.html","tags":[]}],"priority":{"score":15.2,"factors":[{"name":"EPSS percentile","points":8.84},{"name":"CVSS severity","points":6.37}]},"vendorSlug":"fastify-middie","affectedVersions":[{"vendor":"@fastify/middie","product":"@fastify/middie","versions":["< 9.3.2"]}],"fixedVersions":[{"vendor":"@fastify/middie","product":"@fastify/middie","versions":["9.3.2"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-04-16T14:23:16.690976Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@fastify/middie","vulnerableRanges":["<9.3.2"],"patched":["9.3.2"],"from":["GHSA-72c6-fx6q-fr5w"],"provenance":"source"}],"summary":{"text":"The @fastify/middie package (versions 9.3.1 and earlier) fails to apply middleware inherited from a parent scope to child plugin engine instances, so authentication middleware registered in a parent scope does not cover routes in child plugins. An unauthenticated remote attacker with network access can send ordinary requests to routes in those child plugin scopes and reach them without passing authentication or authorization checks, with no user interaction or special configuration required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:28:17Z"},"euvd":{"id":"EUVD-2026-23241","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-fastify-fastify-express-cve-2026-33807","parents":[{"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-22031","published":"2026-01-19","fixed":"9.1.0","kev":false},{"cve":"CVE-2026-2880","published":"2026-02-27","fixed":"9.2.0","kev":false,"link":{"from":"CVE-2026-2880","to":"CVE-2026-6270","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@fastify/middie","fromFixed":"9.2.0","toFixed":"9.3.2","daysApart":48}]}},{"cve":"CVE-2026-33804","published":"2026-04-16","fixed":"9.3.2","kev":false},{"cve":"CVE-2026-6270","published":"2026-04-16","fixed":"9.3.2","kev":false}],"package":"npm:@fastify/middie"}}