CVE-2025-25200 Details
Description
Koa is expressive middleware for Node.js using ES2017 async functions. Prior to versions 0.21.2, 1.7.1, 2.15.4, and 3.0.0-alpha.3, Koa uses an evil regex to parse the `X-Forwarded-Proto` and `X-Forwarded-Host` HTTP headers. This can be exploited to carry out a Denial-of-Service attack. Versions 0.21.2, 1.7.1, 2.15.4, and 3.0.0-alpha.3 fix the issue.
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.
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.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Feb 12, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-1333 | Inefficient Regular Expression Complexity | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| koajs koa | < 0.21.2 >= 1.0.0, < 1.7.1 >= 2.0.0, < 2.15.4 3.0.0 alpha0 3.0.0 alpha1 3.0.0 alpha2 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jan 20, 2026 | Initial Analysis | [email protected] |
| Feb 12, 2025 | New CVE Received | [email protected] |