# CVE-2026-54281: Nest: Middleware Bypass on Fastify via Trailing Slash

- Severity: High 8.7 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.29%, higher than 22% of CVEs (2026-12-01)
- Published: 2026-06-15T20:36:43.000Z
- Modified: 2026-10-25T23:10:00.167Z
- Also known as: GHSA-6v32-fjc9-9qf6
- Weaknesses: CWE-863
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

Nest is a framework for building scalable Node.js server-side applications. Prior to 11.1.24, an authentication bypass vulnerability exists in @nestjs/platform-fastify. 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. This vulnerability is fixed in 11.1.24.

(As written by CVE List.)

## Affected

- nestjs nest: < 11.1.24
- @nestjs/platform-fastify (npm): before 11.1.24

## Every score

- GitHub_M: CVSS:4.0 8.7 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N`

## References

- <https://github.com/nestjs/nest/security/advisories/GHSA-6v32-fjc9-9qf6> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-54281> (advisory)
- <https://github.com/nestjs/nest> (package)

## Sources

- CVE List: [CVE-2026-54281](https://www.cve.org/CVERecord?id=CVE-2026-54281), CVE Terms of Use, modified 2026-06-24
- GitHub Advisory Database: [GHSA-6v32-fjc9-9qf6](https://github.com/advisories/GHSA-6v32-fjc9-9qf6), CC-BY-4.0, modified 2026-07-18
- NVD: [CVE-2026-54281](https://nvd.nist.gov/vuln/detail/CVE-2026-54281), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-54281 · Whole record: https://cve.day/CVE-2026-54281.json · Rebuilt by cve.day 2026-11-25T22:59:25.426Z
