@nestjs/platform-fastify
Affected
- introduced
0, fixed11.1.11(semver)
Fixed versions
11.1.11
Fix
- Fixed version
11.1.11npm install @nestjs/[email protected]
Advisory
Also known as: CVE-2025-69211
Nest has a Fastify URL Encoding Middleware Bypass (TOCTOU)
A NestJS application is vulnerable if it meets all of the following criteria:
@nestjs/platform-fastify.NestMiddleware (via MiddlewareConsumer) for security checks (authentication, authorization, etc.), or through app.use().forRoutes('admin')).Example Vulnerable Config:
// app.module.ts
export class AppModule implements NestModule {
configure(consumer: MiddlewareConsumer) {
consumer
.apply(AuthMiddleware) // Security check
.forRoutes('admin'); // Vulnerable: Path-based restriction
}
}
Attack Vector:
/adminadminGET /%61dmin%61dmin), but controller for /admin is executed.Consequences:
Patches
Patched in @nestjs/[email protected]
Resources
Credit goes to Hacktron AI for reporting this issue.
Medium Basis: The source's own band: MODERATE
0, fixed 11.1.11 (semver)11.1.11
11.1.11npm install @nestjs/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0