Back to search
CVE-2025-25200
Published: Feb 12, 2025
Modified: Feb 12, 2025
PUBLISHED
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.
| Vendor | Product | Versions |
|---|---|---|
koajs | koa | affected < 0.21.2affected >= 1.0.0, < 1.7.1affected >= 2.0.0-alpha.1, < 2.15.4affected >= 3.0.0-alpha.0, < < 3.0.0-alpha.3 |
Weaknesses (CWE)
References
https://github.com/koajs/koa/security/advisories/GHSA-593f-38f6-jp5m
x_refsource_CONFIRM
https://github.com/koajs/koa/blob/master/lib/request.js#L259
x_refsource_MISC
https://github.com/koajs/koa/blob/master/lib/request.js#L404
x_refsource_MISC
https://github.com/koajs/koa/releases/tag/2.15.4
x_refsource_MISC
Security Training
Train your team to recognize and prevent security threats with our comprehensive security awareness program.
Start TrainingVulnerability Scanning
Discover vulnerabilities in your applications and infrastructure before attackers do.
Scan Now