Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
8.3
CVE-2025-25200: Koa may allow denial‑of‑service via crafted headers
CVE-2025-25200 · published 1 year ago
Summary
Old versions of the Koa web framework parse certain HTTP headers with a very slow pattern, so a specially crafted request can tie up the server and cause it to become unresponsive. This affects Koa versions before 0.21.2, 1.7.1, 2.15.4 and 3.0.0‑alpha.3. Upgrade to the latest released version of Koa to eliminate the risk.
What to do
- Update koa to version 2.15.4-aikido.4.
- Update GitHub Actions koa to version 2.15.4.
- Update GitHub Actions koa to version 3.0.0-alpha.3.
- Update GitHub Actions koa to version 1.7.1.
- Update GitHub Actions koa to version 0.21.2.
- Update GitHub Actions koa to version 2.15.4-aikido.4.
- Update rootio @rootio/koa to version 2.15.4-root.io.4.
Affected software
| Ecosystem | Vendor | Product | Affected versions |
|---|---|---|---|
| Root:npm | – | koa |
< 2.15.4-aikido.4 Fix: upgrade to 2.15.4-aikido.4
|
| npm | GitHub Actions | koa |
>= 2.0.0, < 2.15.4 >= 3.0.0-alpha.0, < 3.0.0-alpha.3 >= 1.0.0, < 1.7.1 < 0.21.2 Fix: upgrade to 2.15.4
|
| – | koajs | koa |
< 0.21.2 >= 1.0.0, < 1.7.1 >= 2.0.0, < 2.15.4 3.0.0 cpe:2.3:a:koajs:koa:*:*:*:*:*:node.js:*:* |
| Root:npm | GitHub Actions | koa |
< 2.15.4-aikido.4 Fix: upgrade to 2.15.4-aikido.4
|
| Root:npm | rootio | @rootio/koa |
< 2.15.4-root.io.4 Fix: upgrade to 2.15.4-root.io.4
|
Original advisory text
Koa has Inefficient Regular Expression Complexity
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.
References
- https://github.com/advisories/GHSA-593f-38f6-jp5m
- https://github.com/koajs/koa/security/advisories/GHSA-593f-38f6-jp5m Vendor Advisory
- https://github.com/koajs/koa/blob/master/lib/request.js#L259 URL
- https://github.com/koajs/koa/blob/master/lib/request.js#L404 URL
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/25xxx/CVE-2025-25200... Vendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2025-25200 Vendor Advisory
- https://github.com/koajs/koa/commit/5054af6e31ffd451a4151a1fe144cef6e5d0d83c Patch
- https://github.com/koajs/koa/releases/tag/2.15.4 URL
- https://github.com/koajs/koa/commit/5f294bb1c7c8d9c61904378d250439a321bffd32 Patch
- https://github.com/koajs/koa/commit/93fe903fc966635a991bcf890cfc3427d33a1a08 Patch
Internet-facing
60 days
Internal
At next upgrade
- Not known to be exploited
- Needs hands-on effort to exploit
- Gives an attacker partial control
Severity
8.3
High
Type
CWE-1333Inefficient Regular Expression Complexity (ReDoS)
Timeline
Published12 Feb 2025
Updated21 Nov 2026
First seen6 Mar 2026
Track software like this
Free during beta