CVE-2025-69211
published medium CVSS 4.0 · 6.9Nest has a Fastify URL Encoding Middleware Bypass (TOCTOU)
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| nestjs | — | nest< 11.1.11 | Affected | Not stated | GitHub_M |
Description
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/[email protected]`.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.9 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- 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
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| nestjs | nest | < 11.1.11 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-367 CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition
References
2Provider assertions
2GitHub_M · cna
Nest has a Fastify URL Encoding Middleware Bypass (TOCTOU)
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- e7d88d05cf380db2a29302f46f19bfa9ae81ba0b6ab1c23eed77094b0242c063
- Ingested
- 23 Sep 2026, 08:57:29 UTC
- Source record
- Official CVE record