CVE-2025-25200

HIGHCVSS 7.5/10EPSS 0.77%

Last modified

CVE-2025-25200 is a high-severity vulnerability rated 7.5/10 on the CVSS scale. 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. EPSS estimates a 0.77% chance of exploitation in the next 30 days.

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.

Metrics

Weakness Enumeration

Affected Software

VendorProductVersionsUpdate
KoajsKoa< 0.21.2—
KoajsKoa>= 1.0.0, < 1.7.1—
KoajsKoa>= 2.0.0, < 2.15.4—
KoajsKoa3.0.0Alpha0

References

Timeline

Published
Last Modified
Status
Analyzed

Frequently Asked Questions

What is CVE-2025-25200?
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.
How severe is CVE-2025-25200?
CVE-2025-25200 has a CVSS score of 7.5/10 (HIGH severity). The EPSS model estimates a 0.77% probability of exploitation in the next 30 days.
How do I fix CVE-2025-25200?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

How Strix Helps

Related CVEs from 2025

Are you affected by CVE-2025-25200?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST