{"id":"CVE-2026-76169","published":"2026-09-04T09:51:03Z","modified":"2026-09-04T16:20:02Z","title":"fastify vulnerable to authentication bypass via malformed URLs reaching encapsulated not-found handlers","vendor":"fastify","product":"fastify","tier":"tail","description":{"text":"fastify versions >= 4.0.0 and before 5.12.2 can route a malformed URL sent under one plugin prefix to the custom not-found handler of a different sibling plugin, and invoke it without the preHandler hook declared for that handler. The internal not-found router for encapsulated handlers dispatches malformed paths through a single shared handler pointer before URL decoding, ignoring the prefix and skipping the selected handler's normal lifecycle. An unauthenticated attacker can therefore reach an authentication-protected private fallback through an unrelated public prefix and read its full response, bypassing the authentication hook and breaking prefix encapsulation. Users should upgrade to fastify 5.12.2 or later.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0053,"percentile":0.45753,"provenance":"source"},"cwes":[{"id":"CWE-288","name":"Authentication Bypass Using an Alternate Path or Channel"}],"references":[{"url":"https://github.com/fastify/fastify/security/advisories/GHSA-p68q-wchp-6fh7","tags":[]},{"url":"https://cna.openjsf.org/security-advisories.html","tags":[]}],"priority":{"score":14.4,"factors":[{"name":"EPSS percentile","points":9.15},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"fastify","affectedVersions":[{"vendor":"fastify","product":"fastify","versions":[">= 4.0.0, < 5.12.2"]}],"fixedVersions":[{"vendor":"fastify","product":"fastify","versions":["5.12.2"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-09-04T16:18:32.577097Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"fastify","vulnerableRanges":[">=4.0.0, <5.12.2"],"patched":["5.12.2"],"from":["GHSA-p68q-wchp-6fh7"],"provenance":"source"}],"summary":{"text":"The flaw is in Fastify's internal not-found router for encapsulated plugins: malformed URLs are dispatched through a single shared not-found handler before URL decoding, ignoring the route prefix, which affects the Fastify framework's fastify package. An unauthenticated remote attacker who can send HTTP requests to a Fastify application can reach a different plugin's custom not-found handler, including one protected by an authentication preHandler hook, and read its full response, with no user interaction or special configuration required beyond a public prefix sharing the application.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:35:23Z"},"euvd":{"id":"EUVD-2026-70988","exploited":false,"provenance":"source"}}