CSIRTS // UNIFIED SECURITY ADVISORY FEEDSYS ● ONLINE · POWERED BY INTELFUSIONS.COM

GHSA-6v32-fjc9-9qf6: Nest: Middleware Bypass on Fastify via Trailing Slash

highCVE-2026-54281
Impact 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. Patches Fixed in @nestjs/platform-fastify@11.1.24 References Kudos goes to @a-tt-om

Details

Source
GitHub Security Advisories (INTL · database · site)
Severity
high
Published
2026-06-15
Last updated
2026-07-18
Exploitation
Not in CISA KEV at last sync

Original advisory: https://github.com/advisories/GHSA-6v32-fjc9-9qf6

Exploitation outlook

EPSS (FIRST.org) estimates each CVE’s probability of exploitation in the next 30 days — here is the CSIRTS.com read on those numbers.

Referenced CVEs

CVECSIRTS overviewExternal
CVE-2026-54281coverage & exploitation statusNVD · CVE.org

More from GitHub Security Advisories