Description
Koa is expressive middleware for Node.js using ES2017 async functions. 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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| koajs | koa | >= 3.0.0-alpha.0, < 3.0.0-alpha.5, < 2.16.1 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | koa | < 2.16.1 | 2.16.1 | GHSA-x2rg-q646-7m2v |
| npm | koa | >= 3.0.0-alpha.1, < 3.0.0-alpha.5 | 3.0.0-alpha.5 | GHSA-x2rg-q646-7m2v |
Advisories 1
- WID-SEC-2025-2424 IBM Rational Team Concert: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 28, 2025