{"id":"CVE-2025-25200","aliases":["GHSA-593f-38f6-jp5m"],"url":"https://o3.security/vulnerability/CVE-2025-25200","summary":"Koa has Inefficient Regular Expression Complexity","details":"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","modified":"2026-07-15T01:49:06.650791861Z","cvss":null,"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"npm","name":"koa","fixedVersion":"2.15.4"},{"ecosystem":"npm","name":"koa","fixedVersion":"3.0.0-alpha.3"},{"ecosystem":"npm","name":"koa","fixedVersion":"1.7.1"},{"ecosystem":"npm","name":"koa","fixedVersion":"0.21.2"}],"fix":{"url":"https://github.com/koajs/koa/commit/5054af6e31ffd451a4151a1fe144cef6e5d0d83c","label":"koajs/koa@5054af6"},"references":[{"type":"WEB","url":"https://github.com/koajs/koa/blob/master/lib/request.js#L259"},{"type":"WEB","url":"https://github.com/koajs/koa/blob/master/lib/request.js#L404"},{"type":"WEB","url":"https://github.com/koajs/koa/releases/tag/2.15.4"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/25xxx/CVE-2025-25200.json"},{"type":"ADVISORY","url":"https://github.com/koajs/koa/security/advisories/GHSA-593f-38f6-jp5m"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-25200"},{"type":"FIX","url":"https://github.com/koajs/koa/commit/5054af6e31ffd451a4151a1fe144cef6e5d0d83c"},{"type":"FIX","url":"https://github.com/koajs/koa/commit/5f294bb1c7c8d9c61904378d250439a321bffd32"},{"type":"FIX","url":"https://github.com/koajs/koa/commit/93fe903fc966635a991bcf890cfc3427d33a1a08"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-15T01:49:06.650791861Z"}}