OSV 1.4.0 · github-reviewed · 修改于 2026-07-19 01:26
发布时间
2026-06-16 04:36
GitHub 审查时间
2026-06-16 04:36
NVD 发布时间
2026-06-23 06:16
源文件
advisories/github-reviewed/2026/06/GHSA-6v32-fjc9-9qf6/GHSA-6v32-fjc9-9qf6.json
An authentication bypass vulnerability exists in @nestjs/platform-fastify (confirmed on version 11.1.24, the latest available release at time of report). When middleware is registered through NestJS's MiddlewareConsumer.forRoutes() API on the Fastify adapter, an unauthenticated client can bypass the Nest middleware registered for that route by simply appending a trailing slash (/) to the request URL.
This bypass works on the default Fastify adapter configuration — no special router options need to be enabled. Applications using the standard CRUD route shape (GET /resource and GET /resource/:id) are affected when they protect those routes with MiddlewareConsumer.forRoutes() middleware.
Fixed in @nestjs/[email protected]
Kudos goes to @a-tt-om