CVE-2025-25200Koa has Inefficient Regular Expression Complexity
- 9.2CriticalCVSS base score
- 0.84%Exploitation in 30 daysEPSS · top 42% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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.
Timeline
ID reserved
By GitHub_M
- 9 days later
· 9 days later
Published
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 4.0 | Critical9.2 | 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 |
| NVDNVD · Analyzed | 4.0 | Critical9.2 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
- EPSS (exploitation in 30 days)
- 0.84% · top 42% of all CVEs (17 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: Critical 9.2.
Affected products
Affected packages
From reviewed advisories of the GitHub Advisory Database.
References
References7
- https://github.com/koajs/koa/security/advisories/GHSA-593f-38f6-jp5m (opens in a new tab)x_refsource_CONFIRM
- https://github.com/koajs/koa/commit/5054af6e31ffd451a4151a1fe144cef6e5d0d83c (opens in a new tab)x_refsource_MISC
- https://github.com/koajs/koa/commit/5f294bb1c7c8d9c61904378d250439a321bffd32 (opens in a new tab)x_refsource_MISC
- https://github.com/koajs/koa/commit/93fe903fc966635a991bcf890cfc3427d33a1a08 (opens in a new tab)x_refsource_MISC
- https://github.com/koajs/koa/blob/master/lib/request.js#L259 (opens in a new tab)x_refsource_MISC
- https://github.com/koajs/koa/blob/master/lib/request.js#L404 (opens in a new tab)x_refsource_MISC
- https://github.com/koajs/koa/releases/tag/2.15.4 (opens in a new tab)x_refsource_MISC
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2025-4086 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-593f-38f6-jp5m (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2025-25200)Record last updated .