{"id":"CVE-2025-62595","published":"2025-10-21T16:20:43Z","modified":"2025-10-21T16:35:48Z","title":"Koa Vulnerable to Open Redirect via Trailing Double-Slash (//) in back Redirect Logic","vendor":"koajs","product":"koa","tier":"tail","description":{"text":"Koa is expressive middleware for Node.js using ES2017 async functions. In versions 2.16.2 to before 2.16.3 and 3.0.1 to before 3.0.3, a bypass to CVE-2025-8129 was discovered in the Koa.js framework affecting its back redirect functionality. In certain circumstances, an attacker can manipulate the Referer header to force a user’s browser to navigate to an external, potentially malicious website. This occurs because the implementation incorrectly treats some specially crafted URLs as safe relative paths. Exploiting this vulnerability could allow attackers to perform phishing, social engineering, or other redirect-based attacks on users of affected applications. This issue has been patched in version 3.0.3.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00392,"percentile":0.24974,"provenance":"source"},"cwes":[{"id":"CWE-601","name":"URL Redirection to Untrusted Site"}],"references":[{"url":"https://github.com/koajs/koa/security/advisories/GHSA-g8mr-fgfg-5qpc","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/koajs/koa/commit/769fd75cc6b30d72493b370b5a3ae2332ca03c5b","tags":["x_refsource_MISC"]}],"priority":{"score":8.0,"factors":[{"name":"EPSS percentile","points":4.99},{"name":"CVSS severity","points":3.01}]},"vendorSlug":"koajs","affectedVersions":[{"vendor":"koajs","product":"koa","versions":[">= 2.16.2, < 2.16.3",">= 3.0.1, < 3.0.3"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-10-21T16:35:45.437787Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"koa","vulnerableRanges":[">=3.0.1, <3.0.3",">=2.16.2, <2.16.3"],"patched":["3.0.3","2.16.3"],"from":["GHSA-g8mr-fgfg-5qpc"],"provenance":"source"}],"summary":{"text":"Koa, an expressive Node.js middleware framework, contains an open redirect flaw in its back redirect functionality, affecting versions 2.16.2 before 2.16.3 and 3.0.1 before 3.0.3, where specially crafted URLs with a trailing double slash are incorrectly treated as safe relative paths. An unauthenticated remote attacker can manipulate the Referer header to send a user's browser to an external site, provided the user interacts with the application and the application's redirect behaviour is triggered under the affected conditions, enabling phishing or other redirect-based attacks.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:15:43Z"},"euvd":{"id":"EUVD-2025-35182","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-koajs-koa-cve-2025-32379","parents":[{"from":"CVE-2025-8129","to":"CVE-2025-62595","relation":"bypass","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"bypass","quote":"In versions 2.16.2 to before 2.16.3 and 3.0.1 to before 3.0.3, a bypass to CVE-2025-8129 was discovered in the Koa.js framework affecting its back redirect functionality.","from":"CVE.org","in":"CVE-2025-62595"},{"kind":"version-step","provenance":"source","package":"npm:koa","fromFixed":"3.0.1","toFixed":"3.0.3","daysApart":88},{"kind":"version-step","provenance":"source","package":"npm:koa","fromFixed":"2.16.2","toFixed":"2.16.3","daysApart":88},{"kind":"same-code","provenance":"machine","files":["lib/response.js"],"commits":["https://github.com/koajs/koa/commit/769fd75cc6b30d72493b370b5a3ae2332ca03c5b","https://github.com/koajs/koa/commit/422c551c63d00f24e2bbbdf492f262a5935bb1f0"],"basis":"rarely changed file"}]},{"from":"CVE-2025-32379","to":"CVE-2025-62595","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/response.js"],"commits":["https://github.com/koajs/koa/commit/ff25eb4a7f2392df46481fe86355161067687312","https://github.com/koajs/koa/commit/769fd75cc6b30d72493b370b5a3ae2332ca03c5b"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2025-25200","published":"2025-02-12","fixed":"3.0.0-alpha.3","kev":false},{"cve":"CVE-2025-32379","published":"2025-04-09","fixed":"3.0.0-alpha.5","kev":false},{"cve":"CVE-2025-8129","published":"2025-07-25","fixed":"3.0.1","kev":false},{"cve":"CVE-2025-62595","published":"2025-10-21","fixed":"3.0.3","kev":false},{"cve":"CVE-2026-27959","published":"2026-02-26","fixed":"3.1.2","kev":false,"link":{"from":"CVE-2025-62595","to":"CVE-2026-27959","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:koa","fromFixed":"3.0.3","toFixed":"3.1.2","daysApart":128},{"kind":"version-step","provenance":"source","package":"npm:koa","fromFixed":"2.16.3","toFixed":"2.16.4","daysApart":128}]}}],"package":"npm:koa"}}