logo

CVE-2025-25200 koa

Package

Manager: npm
Name: koa
Vulnerable Version: >=2.0.0 <2.15.4 || >=3.0.0-alpha.0 <3.0.0-alpha.3 || >=1.0.0 <1.7.1 || >=0 <0.21.2

Severity

Level: Critical

CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:U/RL:O/RC:R

CVSS v4.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

EPSS: 0.00211 pctl0.43677

Details

Inefficient Regular Expression Complexity in koa ### Summary 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. ### PoC Coming soon. ### Impact This is a Regex Denial-of-Service attack and causes memory exhaustion. The regex should be improved and empty values should not be allowed.

Metadata

Created: 2025-02-12T19:23:09Z
Modified: 2025-02-12T19:23:09Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/02/GHSA-593f-38f6-jp5m/GHSA-593f-38f6-jp5m.json
CWE IDs: ["CWE-1333"]
Alternative ID: GHSA-593f-38f6-jp5m
Finding: F211
Auto approve: 1