Vulnerabilities

CVE-2025-25200

High 7.5 CVSS 3.1

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.

Description as published by the source, in English.

Key facts

Published
2025-02-12
Last modified
2026-06-17
Assigned by
security-advisories@github.com
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Scored by
nvd@nist.gov (NVD Primary)
Probability of exploitation
0.8 % higher than 53 % of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15
Fix available
Yes, see references

Affected products

Vendor Product Versions Status
koa (npm) < 0.21.2 Affected
koa (npm) ≥ 1.0.0, < 1.7.1 Affected
koa (npm) ≥ 2.0.0, < 2.15.4 Affected
koa (npm) ≥ 3.0.0-alpha.0, < 3.0.0-alpha.3 Affected
Koajs Koa < 0.21.2 Affected
Koajs Koa 3.0.0 Affected
Koajs Koa ≥ 1.0.0, < 1.7.1 Affected
Koajs Koa ≥ 2.0.0, < 2.15.4 Affected

Weakness type

References

Does this affect you?

A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.

Check your asset list Browse all vulnerabilities