{"id":"CVE-2026-54281","aliases":["CVE-2026-54281","GHSA-6v32-fjc9-9qf6"],"related":[],"kind":"vulnerability","state":"published","title":"Nest: Middleware Bypass on Fastify via Trailing Slash","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nAn authentication bypass vulnerability exists in `@nestjs/platform-fastify` (confirmed on version `11.1.24`, the latest available release at time of report). 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.\n\nThis bypass works on the **default Fastify adapter configuration** — no special router options need to be enabled. Applications using the standard CRUD route shape (`GET /resource` and `GET /resource/:id`) are affected when they protect those routes with `MiddlewareConsumer.forRoutes()` middleware.\n\n### Patches\n\nFixed in `@nestjs/platform-fastify@11.1.24`\n\n### References\n\nKudos goes to @a-tt-om","format":"markdown","source":"ghsa"},{"lang":"es","text":"Nest es un framework para construir aplicaciones escalables de servidor Node.js. Antes de la versión 11.1.24, existe una vulnerabilidad de omisión de autenticación en @nestjs/platform-fastify. Cuando el middleware se registra a través de la API MiddlewareConsumer.forRoutes() de NestJS en el adaptador Fastify, un cliente no autenticado puede omitir el middleware de Nest registrado para esa ruta simplemente añadiendo una barra inclinada final (/) a la URL de la solicitud. Esta omisión funciona en la configuración predeterminada del adaptador Fastify. Esta vulnerabilidad está corregida en la versión 11.1.24.","source":"nvd"}],"published":"2026-06-15T20:36:43.000Z","modified":"2026-10-25T23:10:00.167Z","severity":{"scorer":"GitHub_M","scheme":"CVSS: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","score":8.7,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS: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","score":8.7,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS: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","rating":"HIGH"}],"cwes":["CWE-863"],"affected":[{"ranges":[{"version":"< 11.1.24","status":"affected"}],"vendor":"nestjs","product":"nest","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"11.1.24"}],"ecosystem":"npm","package":"@nestjs/platform-fastify","purl":"pkg:npm/%40nestjs/platform-fastify","source":"ghsa"}],"references":[{"url":"https://github.com/nestjs/nest/security/advisories/GHSA-6v32-fjc9-9qf6","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54281","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/nestjs/nest","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-06-23T00:00:00.000Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-54281","url":"https://www.cve.org/CVERecord?id=CVE-2026-54281","licence":"CVE Terms of Use","modified":"2026-06-24T03:56:27.473Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-6v32-fjc9-9qf6","url":"https://github.com/advisories/GHSA-6v32-fjc9-9qf6","licence":"CC-BY-4.0","modified":"2026-07-18T17:30:30.681Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-54281","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54281","licence":"Public domain","modified":"2026-10-25T23:10:00.167Z"}],"updatedAt":"2026-11-25T22:59:25.426Z","epss":{"score":0.00285,"percentile":0.22624,"date":"2026-12-01T12:00:22.000Z"}}