CVE-2025-25200CWE-1333

Koa has Inefficient Regular Expression Complexity

Critical · published February 12, 2025

CVSS v4.0
9.2
EPSS
1%
Percentile
57.5
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v4.0
9.2 · CRITICAL
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:H
EPSS
0.00841 · 57.5th percentile
Weakness
CWE-1333 · Inefficient Regular Expression Complexity
Published
2025-02-12T17:59Z
EPSS history
Timeline
  • 12 FEB 17:59Z
    Koa has Inefficient Regular Expression Complexity
    cvelistv5