
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-2293 is a Fastify URL Encoding Middleware Bypass vulnerability in NestJS that allows unauthenticated attackers to circumvent authentication and authorization middleware by exploiting path-normalization options in the @nestjs/platform-fastify adapter. It affects NestJS version 11.1.13 and earlier (specifically the @nestjs/platform-fastify package up to and including v11.1.13). The vulnerability was discovered by Cristian Vargas of Fluid Attacks, published on February 27, 2026, and patched in v11.1.14 released February 17, 2026. It carries a CVSS v3.1 base score of 9.8 (Critical) and a CVSS v4.0 base score of 8.2 (High) (Github Advisory, Feedly).
The root cause is a path canonicalization mismatch (CWE-863: Incorrect Authorization) between NestJS's middleware matching logic and Fastify's route dispatch logic. When Fastify router options such as ignoreTrailingSlash, ignoreDuplicateSlashes, or useSemicolonDelimiter are enabled, Fastify normalizes incoming request paths before routing — but NestJS middleware matching uses a separate regex check against req.originalUrl (in packages/platform-fastify/adapters/fastify-adapter.ts at lines 706 and 713). If the regex does not match the variant path, NestJS calls next() and skips the middleware entirely (line 714), while Fastify still normalizes and routes the request to the protected handler. This fail-open design means an attacker can craft a URL variant (e.g., with a trailing slash, duplicate slashes, or semicolons) that bypasses middleware checks while still reaching the protected route handler (Github Advisory, Fluid Attacks Advisory).
Successful exploitation allows an unauthenticated remote attacker to bypass any route-scoped middleware, including authentication and authorization guards, in NestJS applications using the Fastify adapter with non-default path-normalization options enabled. This can result in unauthorized access to protected API endpoints, exposure of confidential data, unauthorized modification of application data, and potentially denial of service. The integrity impact is rated High under CVSS v4.0, reflecting the risk of unauthorized data modification through unprotected handlers (Github Advisory, Feedly).
A proof-of-concept exploit is publicly available via Fluid Attacks' advisory at fluidattacks.com/advisories/neton, added to NVD exploit references on April 13, 2026. As of the time of reporting, there is no confirmed evidence of active in-the-wild exploitation. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. The EPSS score is approximately 0.43% (63rd percentile), indicating a relatively low but non-negligible probability of exploitation within 30 days. Exploitation requires that the target application has non-default Fastify path-normalization options enabled, which limits the attack surface to a subset of NestJS/Fastify deployments (Github Advisory, Fluid Attacks Advisory).
@nestjs/platform-fastify version 11.1.13 or earlier. Look for API endpoints protected by route-scoped middleware (e.g., authentication guards). Determine whether the application has Fastify path-normalization options enabled (ignoreTrailingSlash, ignoreDuplicateSlashes, or useSemicolonDelimiter)./api/admin, /api/user/profile)./api/admin/ instead of /api/admin/api//admin/api/admin;paramnext(), skipping the authentication middleware./api/admin/, /api//admin, /api/admin;x) without authentication headers or tokens; unexpected successful responses (2xx) to such requests from unauthenticated clients.//, trailing /, or ;) that return successful responses to unauthenticated clients; absence of middleware execution logs (e.g., auth guard logs) for requests that nonetheless reach protected handlers.Upgrade @nestjs/platform-fastify to version 11.1.14 or later, which contains the fix for this vulnerability (commit fd8d073) (NestJS Release). As a workaround for organizations unable to upgrade immediately, disable Fastify path-normalization options (ignoreTrailingSlash, ignoreDuplicateSlashes, useSemicolonDelimiter) in the Fastify adapter configuration if they are not explicitly required for application functionality. Additionally, consider implementing authentication checks at the route handler level (e.g., using NestJS Guards) rather than relying solely on route-scoped middleware, as a defense-in-depth measure (Github Advisory, Feedly).
The vulnerability was credited to Cristian Vargas of Fluid Attacks, who published a detailed advisory. The NestJS maintainer Kamil Myśliwiec (kamilmysliwiec) promptly addressed the issue with a fix in v11.1.14, labeled in the release notes as fix(fastify): fastify middleware bypass cve. The GitHub Advisory received 19 positive reactions from the community, indicating notable attention. The CVE was also tracked by ENISA under EUVD-2026-9034 (NestJS Release, Github Advisory).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."