NestJS 11.1.13 - Lack of data validation allowing authentication/authorization bypass
cve-program · CVE-2026-2293
PublishedA NestJS application using @nestjs/platform-fastify can allow bypass of authentication/authorization middleware when Fastify path-normalization options are enabled. This issue affects nest.Js: 11.1.13.
Read the publisher's advisoryeuvd · EUVD-2026-9034
PublishedA NestJS application using @nestjs/platform-fastify can allow bypass of authentication/authorization middleware when Fastify path-normalization options are enabled. This issue affects nest.Js: 11.1.13.
Read the publisher's advisorynvd · CVE-2026-2293
PublishedA NestJS application using @nestjs/platform-fastify can allow bypass of authentication/authorization middleware when Fastify path-normalization options are enabled. This issue affects nest.Js: 11.1.13.
Read the publisher's advisoryosv · GHSA-7q64-3rg2-h9pf
Withdrawn## Duplicate Advisory This advisory has been withdrawn because it is a duplicate of GHSA-r4wm-x892-vjmx. This link is maintained to preserve external references. ## Original Description A NestJS application using @nestjs/platform-fastify can allow bypass of authentication/authorization middleware when Fastify path-normalization options are enabled. This issue affects nest.Js: 11.1.13.
Read the publisher's advisoryosv · GHSA-r4wm-x892-vjmx
Published### Impact _What kind of vulnerability is it? Who is impacted?_ A NestJS application using `@nestjs/platform-fastify` can allow bypass of any middleware when Fastify path-normalization options (e.g., `ignoreTrailingSlash`, `ignoreDuplicateSlashes`, `useSemicolonDelimiter`) are enabled. In affected route-scoped middleware setups, variant paths may skip middleware checks while still reaching the protected handler. The bug is a path canonicalization mismatch between middleware matching and route matching in Nest’s Fastify adapter. Nest passes Fastify routerOptions (such as `ignoreTrailingSlash`, `ignoreDuplicateSlashes`, `useSemicolonDelimiter`) to the Fastify router in packages/platform-fastify/adapters/fastify-adapter.ts:253. But middleware execution is decided by a separate regex check over `req.originalUrl` in packages/platform-fastify/adapters/fastify-adapter.ts:706 and packages/platform-fastify/adapters/fastify-adapter.ts:713. If that regex does not match, Nest does `next()` and skips the middleware (packages/platform-fastify/adapters/fastify-adapter.ts:714), while Fastify may still normalize the same path and route it to the protected handler. So the vulnerability exists because security checks (middleware) and request dispatch(router) use different URL interpretations. This is a fail-open design issue (inconsistent normalization), not just a bad app config: non-default router options make the mismatch reachable. ### Patches Fixed in `@nestjs/[email protected]` ### References Credit goes to Fluidattacks ([Cristian Vargas](https://www.linkedin.com/in/cvmiracle/)) https://fluidattacks.com/advisories/neton
Read the publisher's advisoryAffected versions, risk and source history
Related advisories and sources
Publishers link these advisories through the identifiers shown below. A shared identifier or date alone does not tell you whether your software is affected or whether the advisories describe the same cause.
CVE-2026-2293 · CVE overview and exploitation status
cve-program · CVE-2026-2293
- https://fluidattacks.com/advisories/neton
- https://github.com/nestjs/nest/
- https://github.com/nestjs/nest/releases/tag/v11.1.14
euvd · EUVD-2026-9034
- https://fluidattacks.com/advisories/neton
- https://github.com/nestjs/nest/
- https://github.com/nestjs/nest/releases/tag/v11.1.14
nvd · CVE-2026-2293
- https://fluidattacks.com/advisories/neton
- https://github.com/nestjs/nest/
- https://github.com/nestjs/nest/releases/tag/v11.1.14
- https://access.redhat.com/security/cve/CVE-2026-2293
- https://bugzilla.redhat.com/show_bug.cgi?id=2443367
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-2293.json
osv · GHSA-7q64-3rg2-h9pf
- https://nvd.nist.gov/vuln/detail/CVE-2026-2293
- https://fluidattacks.com/advisories/neton
- https://github.com/nestjs/nest
- https://github.com/nestjs/nest/releases/tag/v11.1.14
osv · GHSA-r4wm-x892-vjmx
- https://github.com/nestjs/nest/security/advisories/GHSA-r4wm-x892-vjmx
- https://nvd.nist.gov/vuln/detail/CVE-2026-2293
- https://github.com/nestjs/nest/commit/fd8d073e0e048b185147209338ca7042e52c10ba
- https://fluidattacks.com/advisories/neton
- https://github.com/nestjs/nest
- https://github.com/nestjs/nest/releases/tag/v11.1.14
Related changes
Linked by CVE identifierNo related changes are available here.