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 VendorProductAffected 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.
Fix within
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
Exploitation
<1% chance of attack within 30 days
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