{"id":"CVE-2025-8129","published":"2025-07-25T04:02:05Z","modified":"2025-07-25T12:01:53Z","title":"KoaJS Koa HTTP Header response.js back redirect","vendor":"KoaJS","product":"Koa","tier":"tail","description":{"text":"A vulnerability, which was classified as problematic, was found in KoaJS Koa up to 3.0.0. Affected is the function back in the library lib/response.js of the component HTTP Header Handler. The manipulation of the argument Referrer leads to open redirect. It is possible to launch the attack remotely. The exploit has been disclosed to the public and may be used.","provenance":"source","from":"CVE.org"},"cvss":{"score":3.5,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N/E:P/RL:X/RC:R","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00285,"percentile":0.21511,"provenance":"source"},"cwes":[{"id":"CWE-601","name":"URL Redirection to Untrusted Site"}],"references":[{"url":"https://vuldb.com/?id.317514","tags":["vdb-entry","technical-description"]},{"url":"https://vuldb.com/?ctiid.317514","tags":["signature","permissions-required"]},{"url":"https://vuldb.com/?submit.619741","tags":["third-party-advisory"]},{"url":"https://github.com/koajs/koa/issues/1892","tags":["issue-tracking"]},{"url":"https://github.com/koajs/koa/issues/1892#issue-3213028583","tags":["exploit","issue-tracking"]}],"priority":{"score":11.8,"factors":[{"name":"EPSS percentile","points":4.3},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":2.45}]},"vendorSlug":"koajs","affectedVersions":[{"vendor":"KoaJS","product":"Koa","versions":["3.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-07-25T12:01:50.242124Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"koa","vulnerableRanges":[">=2.0.0, <2.16.2",">=3.0.0-alpha.0, <3.0.1"],"patched":["2.16.2","3.0.1"],"from":["GHSA-jgmv-j7ww-jx2x"],"provenance":"source"}],"summary":{"text":"The Koa HTTP header handler in KoaJS Koa (versions up to 3.0.0), specifically the back function in lib/response.js, mishandles the Referrer argument and enables an open redirect. An attacker can trigger it remotely with low complexity, but needs low privileges and the victim must take an action (user interaction).","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:01:30Z"},"euvd":{"id":"EUVD-2025-22567","exploited":false,"provenance":"source"},"exploitRefs":["https://github.com/koajs/koa/issues/1892#issue-3213028583"],"lineage":{"familyId":"fam-koajs-koa-cve-2025-32379","parents":[{"from":"CVE-2025-32379","to":"CVE-2025-8129","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"npm:koa","fromFixed":"3.0.0-alpha.5","toFixed":"3.0.1","daysApart":107},{"kind":"version-step","provenance":"source","package":"npm:koa","fromFixed":"2.16.1","toFixed":"2.16.2","daysApart":107},{"kind":"same-code","provenance":"machine","files":["lib/response.js"],"commits":["https://github.com/koajs/koa/commit/ff25eb4a7f2392df46481fe86355161067687312","https://github.com/koajs/koa/commit/422c551c63d00f24e2bbbdf492f262a5935bb1f0"],"basis":"rarely changed file"}]}],"children":[{"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"}]}],"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}],"package":"npm:koa"}}