CVE-2025-25200

7.5 HIGH
Published: February 12, 2025 Modified: January 20, 2026
View on NVD

Description

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.

AI Explanation

Get an AI-powered plain-language explanation of this vulnerability and remediation steps.

Login to generate AI explanation

CVSS v3.x Details

0.0 Low Medium High Critical 10.0
Vector String
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References to Advisories, Solutions, and Tools

Patch Vendor Advisory Exploit Third Party Advisory
https://github.com/koajs/koa/blob/master/lib/request.js#L259
Source: security-advisories@github.com
Product
https://github.com/koajs/koa/blob/master/lib/request.js#L404
Source: security-advisories@github.com
Product
https://github.com/koajs/koa/releases/tag/2.15.4
Source: security-advisories@github.com
Release Notes
https://github.com/koajs/koa/security/advisories/GHSA-593f-38f6-jp5m
Source: security-advisories@github.com
Vendor Advisory

7 reference(s) from NVD

Quick Stats

CVSS v3 Score
7.5 / 10.0
EPSS (Exploit Probability)
0.4%
58th percentile
Exploitation Status
Not in CISA KEV

Weaknesses (CWE)

Affected Vendors

koajs