Loading...
Skip to main content

CVE-2025-25200 — Vulnerability in koa — CVE Details

CRITICAL

Inefficient Regular Expression Complexity in koa

Published February 12, 2025Updated February 12, 2025Source: osv

Summary

### 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.

Advisory Timeline

  • First published February 12, 2025 (607 days ago).
  • Last revised February 12, 2025 — 0 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

npm
Update koa to 3.0.0-alpha.3 or later
npm install koa@3.0.0-alpha.3
npm
Update koa to 2.15.4 or later
npm install koa@2.15.4
npm
Update koa to 1.7.1 or later
npm install koa@1.7.1
npm
Update koa to 0.21.2 or later
npm install koa@0.21.2

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (4)

Affects 1 ecosystem: npm (1).

PackageEcosystemAffectedFixed In
koa
npm
All versions3.0.0-alpha.3
koa
npm
All versions2.15.4
koa
npm
All versions1.7.1
koa
npm
All versions0.21.2

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 8.6 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
—
Confidentiality
—
Integrity
—
Availability
—

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

Frequently Asked Questions

What is CVE-2025-25200?
Inefficient Regular Expression Complexity in koa This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 8.6/10).
How do I check if my project is affected by CVE-2025-25200?
CVE-2025-25200 affects koa. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-25200 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
8.6

High exploitability or significant impact. Prioritize remediation within days.

Also Known As

GHSA-593f-38f6-jp5m

Related CVEs

  • CVE-2026-107722
    CRITICAL

    fast-jwt: Incomplete patch of CVE-2026-34950: Non-whitespace key-prefix re-enables RSA→HS256 algorithm confusion

  • CVE-2026-108261
    CRITICAL

    TinaCMS admin preview iframe loads an attacker-controlled origin from the URL fragment

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies