CVE-2025-25200
Koa has Inefficient Regular Expression Complexity
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.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 0.877% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T17:59:58.648Z. Public exploit availability is not used to set this status.
CVSS 4.0 · 9.2 · published by GitHub_MCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:H
Assessment source · checked 2026-11-19T12:57:28.660Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T17:59:58.648Z | CISA KEV |
| cvss | verified | 2026-11-19T12:57:28.660Z | CVE Program |
| epss | verified | 2026-11-19T16:04:40.588Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:52:30.819Z | OSV |
| affected | verified | 2026-11-19T12:57:28.660Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:57:28.660Z | CVE Program |
Affected versions and configuration
koajs koa; default status: unknown: < 0.21.2 [affected; scheme: unspecified]; >= 1.0.0, < 1.7.1 [affected; scheme: unspecified]; >= 2.0.0-alpha.1, < 2.15.4 [affected; scheme: unspecified]; >= 3.0.0-alpha.0, < < 3.0.0-alpha.3 [affected; scheme: unspecified]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
CVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "koajs",
"product": "koa",
"versions": [
{
"status": "affected",
"version": "< 0.21.2"
},
{
"status": "affected",
"version": ">= 1.0.0, < 1.7.1"
},
{
"status": "affected",
"version": ">= 2.0.0-alpha.1, < 2.15.4"
},
{
"status": "affected",
"version": ">= 3.0.0-alpha.0, < < 3.0.0-alpha.3"
}
]
}
],
"additionalContainers": [
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2025-25200",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"version": "2.0.3",
"timestamp": "2025-02-12T18:33:35.286450Z"
}
}
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2025-02-12T19:29:10.232Z"
}
}
]
}Archived source JSONOSV · osv · full conditions
{
"id": "GHSA-593f-38f6-jp5m",
"aliases": [
"CVE-2025-25200"
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "2.0.0"
},
{
"fixed": "2.15.4"
}
]
}
],
"package": {
"name": "koa",
"purl": "pkg:npm/koa",
"ecosystem": "npm"
},
"versions": [],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/02/GHSA-593f-38f6-jp5m/GHSA-593f-38f6-jp5m.json"
}
},
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "3.0.0-alpha.0"
},
{
"fixed": "3.0.0-alpha.3"
}
]
}
],
"package": {
"name": "koa",
"purl": "pkg:npm/koa",
"ecosystem": "npm"
},
"versions": [],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/02/GHSA-593f-38f6-jp5m/GHSA-593f-38f6-jp5m.json"
}
},
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "1.0.0"
},
{
"fixed": "1.7.1"
}
]
}
],
"package": {
"name": "koa",
"purl": "pkg:npm/koa",
"ecosystem": "npm"
},
"versions": [],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/02/GHSA-593f-38f6-jp5m/GHSA-593f-38f6-jp5m.json"
}
},
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "0.21.2"
}
]
}
],
"package": {
"name": "koa",
"purl": "pkg:npm/koa",
"ecosystem": "npm"
},
"versions": [],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/02/GHSA-593f-38f6-jp5m/GHSA-593f-38f6-jp5m.json"
}
}
],
"severity": [
{
"type": "CVSS_V4",
"score": "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"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://github.com/koajs/koa/security/advisories/GHSA-593f-38f6-jp5m",
"type": "WEB"
},
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2025-25200",
"type": "ADVISORY"
},
{
"url": "https://github.com/koajs/koa/commit/5054af6e31ffd451a4151a1fe144cef6e5d0d83c",
"type": "WEB"
},
{
"url": "https://github.com/koajs/koa/commit/5f294bb1c7c8d9c61904378d250439a321bffd32",
"type": "WEB"
},
{
"url": "https://github.com/koajs/koa/commit/93fe903fc966635a991bcf890cfc3427d33a1a08",
"type": "WEB"
},
{
"url": "https://github.com/koajs/koa",
"type": "PACKAGE"
},
{
"url": "https://github.com/koajs/koa/releases/tag/2.15.4",
"type": "WEB"
}
],
"relatedGitRanges": [],
"database_specific": {
"cwe_ids": [
"CWE-1333"
],
"severity": "CRITICAL",
"github_reviewed": true,
"nvd_published_at": "2025-02-12T18:15:28Z",
"github_reviewed_at": "2025-02-12T19:23:09Z"
}
}Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
| Evidence type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| ecosystem-boundary | npm / package | koa | Not a distribution channel | 2.15.4 | Official record |
| ecosystem-boundary | npm / package | koa | Not a distribution channel | 3.0.0-alpha.3 | Official record |
| ecosystem-boundary | npm / package | koa | Not a distribution channel | 1.7.1 | Official record |
| ecosystem-boundary | npm / package | koa | Not a distribution channel | 0.21.2 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- OSVConsulted: 2026-11-19T12:52:30.819ZArchived source JSON
Source publication: 2025-02-12T19:23:09.000Z
Source modification: 2025-02-12T19:27:07.225ZDocument fingerprint
21e1fe5d8680a6ef21fa8ac5841aa8616030957efde466707b5d03db8dfdddaf - CVE ProgramConsulted: 2026-11-19T12:57:28.660ZArchived source JSON
Source publication: 2025-02-12T17:59:04.615Z
Source modification: 2025-02-12T19:29:10.232ZDocument fingerprint
e447bb202478c6cd0e9e7f32a6dea42cee2db12cdf534d6e06272a2967280da3 - CISA KEVConsulted: 2026-11-19T17:59:58.648ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - FIRST EPSSConsulted: 2026-11-19T16:04:40.588ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
f828727fd2419e9ee62887077d52e76b99e46a1d7a1ce89e08e7e861a70ba109
Official status history
- UNKNOWN → PUBLISHED · · evidence