@nestjs/platform-fastify is vulnerable to URL normalization bypass
80
High Risk
Affected versions of this package contain a Fastify middleware bypass due to inconsistent URL normalization and sanitization before route matching and security checks. Improper handling of duplicate slashes, trailing slashes, case sensitivity, and URI decoding may allow crafted requests to be interpreted differently by middleware and the router. An attacker could exploit this by sending specially crafted paths (e.g., using //, mixed casing, encoded characters, or trailing slashes) to bypass authentication or authorization middleware and access protected endpoints. The issue stems from mismatched canonicalization logic that enables path confusion and access control evasion.
You are affected if you are using a version that falls within the vulnerable range.
@nestjs/platform-fastify is vulnerable to URL normalization bypass in versions 11.0.0 - 11.1.13.
Upgrade the @nestjs/platform-fastify library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant