koa
Affected
- introduced
2.0.0, fixed2.15.4(semver)
Fixed versions
2.15.4
Fix
- Fixed version
2.15.4npm install [email protected]
Advisory
Also known as: CVE-2025-25200
Inefficient Regular Expression Complexity in koa
Summary
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.
PoC
Coming soon.
Impact
This is a Regex Denial-of-Service attack and causes memory exhaustion. The regex should be improved and empty values should not be allowed.
Critical Basis: The source's own band: CRITICAL
2.0.0, fixed 2.15.4 (semver)2.15.4
2.15.4npm install [email protected]3.0.0-alpha.0, fixed 3.0.0-alpha.3 (semver)3.0.0-alpha.3
3.0.0-alpha.3npm install [email protected]1.0.0, fixed 1.7.1 (semver)1.7.1
1.7.1npm install [email protected]0, fixed 0.21.2 (semver)0.21.2
0.21.2npm install [email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0