Koa Denial-of-Service Vulnerability via Inefficient Header Parsing

Vulnerability

A denial-of-service vulnerability has been identified in Koa, a Node.js middleware framework. The issue arises from the use of a problematic regular expression to parse the 'X-Forwarded-Proto' and 'X-Forwarded-Host' HTTP headers. This vulnerability can be exploited to cause memory exhaustion, leading to a denial-of-service condition. The affected versions of Koa are prior to 0.21.2, 1.7.1, 2.15.4, and 3.0.0-alpha.3.

Impact

Exploitation of this vulnerability leads to a regex denial-of-service attack, causing memory exhaustion.

Remediation

Users can upgrade to Koa versions 0.21.2, 1.7.1, 2.15.4, or 3.0.0-alpha.3 to address this vulnerability.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
2.5
exploitability
8.1
remediation
7.7
relevance
0.0
threat
3.2
urgency
2.9
incentive
5.8

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.