CVE-2025-25200GHSA-593F-38F6-JP5M
Koa has Inefficient Regular Expression Complexity
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 0.21.2, 1.7.1, 2.15.4, 3.0.0-alpha.3
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- 2 proofs of concept on GitHub
CISA's decision points: whether it is exploited, whether attacks can be automated, and how much control an attacker gets. Assessed (SSVC 2.0.3).What do these mean? →
- Exploitation: none
- Automatable: no
- Technical impact: partial
Summary
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.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: partial
- Record last updated
Affected versions
- koajs koa
fixed in 0.21.2; From 1.0.0 · fixed in 1.7.1; From 2.0.0-alpha.1 · fixed in 2.15.4
- koanpm
From 2.0.0 · fixed in 2.15.4
- koanpm
From 3.0.0-alpha.0 · fixed in 3.0.0-alpha.3
- koanpm
From 1.0.0 · fixed in 1.7.1
- koanpm
fixed in 0.21.2