@adonisjs/http-server is vulnerable to Regular Expression Denial of Service (ReDoS)
53
Medium Risk
The built-in slug route matcher uses a regular expression with overlapping quantifiers. Requests to routes that apply the slug matcher to a parameter can supply crafted input that triggers resource exhausting backtracking. Because route matching runs before middleware, the resulting CPU spike blocks the Node.js event loop even for unauthenticated requests, degrading availability. The fix replaces the slug matcher pattern with one that avoids catastrophic backtracking.
You are affected if you are using a version that falls within the vulnerable range and your application defines routes that apply the built-in slug matcher to user controlled parameters.
@adonisjs/http-server is vulnerable to Regular Expression Denial of Service (ReDoS) in versions 0.0.1 - 8.2.1 and 9.0.0 - 9.1.0.
Upgrade the @adonisjs/http-server 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.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant