@nestjs/throttler is vulnerable to Uncontrolled Resource Consumption
75
CVE Score
High
Uncontrolled Resource Consumption
ThrottlerGuard keys each rate-limit counter using the built-in getTracker, which returns the raw req.ip that untrusted clients supply, so a client rotating IPv6 addresses within its own subnet never shares a counter and bypasses the limit. The default in-memory ThrottlerStorageService keeps one permanent record per tracker key, so many distinct addresses grow the map until the process exhausts memory; custom getTracker or storage implementations are unaffected. The fix normalizes IPv6 addresses to a configurable /64 tracker and periodically sweeps idle records out of the in-memory storage.
Upgrade the @nestjs/throttler package to version 6.7.0 or later.
You are affected if you are using a version that falls within the vulnerable range and rely on the built-in getTracker of ThrottlerGuard and the default in-memory ThrottlerStorageService.
1.1.1 - 6.6.0
Fixed in 6.7.0@nestjs/throttler is vulnerable to Uncontrolled Resource Consumption in versions 1.1.1 - 6.6.0.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.