In koa < 2.16.1 and < 3.0.0-alpha.5, passing untrusted user input to ctx.redirect() even after sanitizing it, may execute javascript code on the user who use the app.
This issue is patched in 2.16.1 and 3.0.0-alpha.5.
Coming soon...
{ "github_reviewed_at": "2025-04-09T13:00:07Z", "cwe_ids": [ "CWE-79" ], "nvd_published_at": "2025-04-09T16:15:25Z", "severity": "MODERATE", "github_reviewed": true }