CVE-2025-25200
February 12, 2025
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.
Affected Packages
koa (NPM):
Affected version(s) >=1.0.0 <1.7.1Fix Suggestion:
Update to version 1.7.1koa (NPM):
Affected version(s) >=2.0.0 <2.15.4Fix Suggestion:
Update to version 2.15.4koa (NPM):
Affected version(s) >=3.0.0-alpha.0 <3.0.0-alpha.3Fix Suggestion:
Update to version 3.0.0-alpha.3koa (NPM):
Affected version(s) >=0.0.1 <0.21.2Fix Suggestion:
Update to version 0.21.2Related ResourcesĀ (9)
Do you need more information?
Contact UsCVSS v4
Base Score:
9.2
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
NONE
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
HIGH
CVSS v3
Base Score:
8.6
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
CHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Weakness Type (CWE)
Inefficient Regular Expression Complexity
EPSS
Base Score:
0.36