AdonisJS http-server
AdonisJS HTTP Server: Uncontrolled Resource Consumption and Inefficient Regular Expression Complexity
AdonisJS HTTP Server is a package for handling HTTP requests in the AdonisJS framework. Prior to 8.2.2 and 9.1.1, the regular expression returned by router.matchers.slug() contains adjacent greedy repetitions with overlapping character classes. When an application applies this matcher to an attacker-controlled route parameter, a long slug ending in a character rejected by the final assertion causes quadratic backtracking and excessive CPU use. Route matching occurs before route and group middleware, so authentication or rate-limiting middleware attached to the route may not prevent an unauthenticated request from blocking the Node.js event loop and stopping the worker from serving unrelated requests or health checks. This issue is fixed in versions 8.2.2 and 9.1.1.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 8.2.2
- >= 9.0.0, < 9.1.1
Fixed in 8.2.2, 9.1.1
Mitigation
Upgrade http-server to 8.2.2 or 9.1.1 or later.
References
- Vendor advisory github.com/adonisjs/http-server/security/advis…
- Patch github.com/adonisjs/http-server/commit/86af38c…
- Patch github.com/adonisjs/http-server/commit/d8c749a…
2 more
- Release notes github.com/adonisjs/http-server/releases/tag/v…
- Release notes github.com/adonisjs/http-server/releases/tag/v…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.