{"id":"CVE-2025-69211","published":"2025-12-29T16:01:22Z","modified":"2025-12-29T16:50:02Z","title":"Nest has a Fastify URL Encoding Middleware Bypass (TOCTOU)","vendor":"nestjs","product":"nest","tier":"tail","description":{"text":"Nest is a framework for building scalable Node.js server-side applications. Versions prior to 11.1.11 have a Fastify URL encoding middleware bypass. A NestJS application is vulnerable if it uses `@nestjs/platform-fastify`; relies on `NestMiddleware` (via `MiddlewareConsumer`) for security checks (authentication, authorization, etc.), or through `app.use()`; and applies middleware to specific routes using string paths or controllers (e.g., `.forRoutes('admin')`). Exploitation can result in unauthenticated users accessing protected routes, restricted administrative endpoints becoming accessible to lower-privileged users, and/or middleware performing sanitization or validation being skipped. This issue is patched in `@nestjs/platform-fastify@11.1.11`.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.9,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:U","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00382,"percentile":0.33073,"provenance":"source"},"cwes":[{"id":"CWE-367","name":"Time-of-check Time-of-use (TOCTOU) Race Condition"}],"references":[{"url":"https://github.com/nestjs/nest/security/advisories/GHSA-8wpr-639p-ccrj","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/nestjs/nest/commit/c4cedda15a05aafec1e6045b36b0335ab850e771","tags":["x_refsource_MISC"]}],"priority":{"score":11.4,"factors":[{"name":"EPSS percentile","points":6.61},{"name":"CVSS severity","points":4.83}]},"vendorSlug":"nestjs","affectedVersions":[{"vendor":"nestjs","product":"nest","versions":["< 11.1.11"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2025-12-29T16:49:53.144372Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@nestjs/platform-fastify","vulnerableRanges":["<11.1.11"],"patched":["11.1.11"],"from":["GHSA-8wpr-639p-ccrj"],"provenance":"source"}],"euvd":{"id":"EUVD-2025-205611","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-nestjs-nest-cve-2025-69211","children":[{"from":"CVE-2025-69211","to":"CVE-2026-2293","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@nestjs/platform-fastify","fromFixed":"11.1.11","toFixed":"11.1.14","daysApart":60},{"kind":"same-code","provenance":"machine","files":["packages/platform-fastify/adapters/fastify-adapter.ts","packages/platform-fastify/adapters/middie/fastify-middie.ts"],"commits":["https://github.com/nestjs/nest/commit/c4cedda15a05aafec1e6045b36b0335ab850e771","https://github.com/nestjs/nest/commit/fd8d073e0e048b185147209338ca7042e52c10ba"],"basis":"shared function","functions":["FastifyAdapter"]}]}],"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},{"cve":"CVE-2026-54281","published":"2026-06-22","fixed":"11.1.24","kev":false}],"package":"npm:@nestjs/platform-fastify"}}