{"id":"CVE-2026-54281","published":"2026-06-22T20:48:45Z","modified":"2026-06-24T03:56:27Z","title":"Nest: Middleware Bypass on Fastify via Trailing Slash","vendor":"nestjs","product":"nest","tier":"tail","description":{"text":"Nest is a framework for building scalable Node.js server-side applications. Prior to 11.1.24, an authentication bypass vulnerability exists in @nestjs/platform-fastify. When middleware is registered through NestJS's MiddlewareConsumer.forRoutes() API on the Fastify adapter, an unauthenticated client can bypass the Nest middleware registered for that route by simply appending a trailing slash (/) to the request URL. This bypass works on the default Fastify adapter configuration. This vulnerability is fixed in 11.1.24.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.7,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00498,"percentile":0.35621,"provenance":"source"},"cwes":[{"id":"CWE-863","name":"Incorrect Authorization"}],"references":[{"url":"https://github.com/nestjs/nest/security/advisories/GHSA-6v32-fjc9-9qf6","tags":["x_refsource_CONFIRM"]}],"priority":{"score":13.2,"factors":[{"name":"EPSS percentile","points":7.12},{"name":"CVSS severity","points":6.09}]},"vendorSlug":"nestjs","affectedVersions":[{"vendor":"nestjs","product":"nest","versions":["< 11.1.24"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-06-23T00:00:00+00:00","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@nestjs/platform-fastify","vulnerableRanges":["<11.1.24"],"patched":["11.1.24"],"from":["GHSA-6v32-fjc9-9qf6"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-38398","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2025-69211","published":"2025-12-29","fixed":"11.1.11","kev":false},{"cve":"CVE-2026-2293","published":"2026-02-27","fixed":"11.1.14","kev":false},{"cve":"CVE-2026-33011","published":"2026-03-20","fixed":"11.1.16","kev":false,"link":{"from":"CVE-2026-33011","to":"CVE-2026-54281","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@nestjs/platform-fastify","fromFixed":"11.1.16","toFixed":"11.1.24","daysApart":94}]}},{"cve":"CVE-2026-54281","published":"2026-06-22","fixed":"11.1.24","kev":false}],"package":"npm:@nestjs/platform-fastify"}}