{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-25200","id":"CVE-2025-25200","title":"Koa has Inefficient Regular Expression Complexity","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.","descriptionLong":"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.","published":"2025-02-12T17:59:04.615Z","updated":"2026-10-28T02:31:06.424727355Z","reserved":"2025-02-03T19:30:53.400Z","status":"Analyzed","rejected":false,"assigner":"GitHub_M","metric":{"version":"4.0","score":9.2,"vector":"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","rating":"critical","source":"GitHub_M"},"metrics":[{"version":"4.0","score":9.2,"vector":"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","rating":"critical","source":"GitHub_M"},{"version":"4.0","score":9.2,"vector":"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","rating":"critical","source":"github.com"},{"version":"4.0","score":null,"vector":"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","rating":"unrated","source":"OSV"},{"version":"4.0","score":null,"vector":"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","rating":"critical","source":"GitHub"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"NVD"}],"rating":"critical","products":["koajs koa"],"affectedProducts":[{"vendor":"koajs","product":"koa","defaultStatus":null,"versions":[{"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","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"koa","purl":"pkg:npm/koa","ranges":[">=2.0.0 <2.15.4",">=3.0.0-alpha.0 <3.0.0-alpha.3",">=1.0.0 <1.7.1","<0.21.2"],"fixed":["2.15.4","3.0.0-alpha.3","1.7.1","0.21.2"],"advisory":"GHSA-593f-38f6-jp5m"}],"cwes":["CWE-1333"],"aliases":["GHSA-593f-38f6-jp5m"],"references":[{"url":"https://github.com/koajs/koa/security/advisories/GHSA-593f-38f6-jp5m","tags":["x_refsource_CONFIRM","Vendor Advisory","advisory","web"]},{"url":"https://github.com/koajs/koa/commit/5054af6e31ffd451a4151a1fe144cef6e5d0d83c","tags":["x_refsource_MISC","Patch","fix","web"]},{"url":"https://github.com/koajs/koa/commit/5f294bb1c7c8d9c61904378d250439a321bffd32","tags":["x_refsource_MISC","Patch","fix","web"]},{"url":"https://github.com/koajs/koa/commit/93fe903fc966635a991bcf890cfc3427d33a1a08","tags":["x_refsource_MISC","Patch","fix","web"]},{"url":"https://github.com/koajs/koa/blob/master/lib/request.js#L259","tags":["x_refsource_MISC","Product","web"]},{"url":"https://github.com/koajs/koa/blob/master/lib/request.js#L404","tags":["x_refsource_MISC","Product","web"]},{"url":"https://github.com/koajs/koa/releases/tag/2.15.4","tags":["x_refsource_MISC","Release Notes","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/25xxx/CVE-2025-25200.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-25200","tags":["advisory"]},{"url":"https://github.com/koajs/koa","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00877,"epssPercentile":0.59766,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-25200","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-25200","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-25200","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-593f-38f6-jp5m","ok":true,"note":"GHSA-593f-38f6-jp5m"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-25200","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}