CVE-2025-32379 XSS at ctx.redirect() function in Koajs
MediumCVSS 6.1
EPSS 0.27%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: total
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.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| koajs koa | < 2.16.1; = 3.0.0-alpha0; = 3.0.0-alpha1; = 3.0.0-alpha2 +4 more | 2.16.1 | Fixed |
| npm koa(npm) | < 2.16.1; >= 3.0.0-alpha.1, < 3.0.0-alpha.5 | 2.16.1, 3.0.0-alpha.5 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm koa(npm) | < 2.16.1 | 2.16.1 |
| npm koa(npm) | >= 3.0.0-alpha.1, < 3.0.0-alpha.5 | 3.0.0-alpha.5 |
| koajs koa | = >= 3.0.0-alpha.0, < 3.0.0-alpha.5 | No fix listed |
| koajs koa | = < 2.16.1 | No fix listed |
| koajs koa | < 2.16.1 | 2.16.1 |
| koajs koa | = 3.0.0-alpha0 | No fix listed |
| koajs koa | = 3.0.0-alpha1 | No fix listed |
| koajs koa | = 3.0.0-alpha2 | No fix listed |
| koajs koa | = 3.0.0-alpha3 | No fix listed |
| koajs koa | = 3.0.0-alpha4 | No fix listed |
References
- https://github.com/koajs/koa/security/advisories/GHSA-x2rg-q646-7m2v patch vendor-advisory
- https://github.com/koajs/koa/commit/ff25eb4a7f2392df46481fe86355161067687312 patch
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com product