#VU108849 Inefficient regular expression complexity in koa - CVE-2025-25200

 

#VU108849 Inefficient regular expression complexity in koa - CVE-2025-25200

Published: May 9, 2025


Vulnerability identifier: #VU108849
Vulnerability risk: Critical
CVSSv4.0: 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/E:U/U:Red
CVE-ID: CVE-2025-25200
CWE-ID: CWE-1333
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vulnerable software:
koa
Software vendor:
Koa.js

Description

The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.

The vulnerability exists due Koa uses an evil regex to parse the `X-Forwarded-Proto` and `X-Forwarded-Host` HTTP headers. A remote attacker can pass specially crafted data to the application and perform regular expression denial of service (ReDos) attack.


Remediation

Install updates from vendor's website.

External links