CVE-2025-32379
Medium
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.
SeverityMedium
CVSS5.0
Exploit probability—
ProductKoa
PublishedApr 9, 2025
First seenApr 9, 2025
Weakness typeCWE-79Cross-site scripting (XSS)
How to fix
Update
- koajs koa2.16.1 or later
- koa2.16.1, 3.0.0-alpha.5 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| koajs koa | v < 2.16.1, 3.0.0 | 2.16.1 |
| koanpm | v < 2.16.1, 3.0.0-alpha.1 ≤ v < 3.0.0-alpha.5 | 2.16.1, 3.0.0-alpha.5 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
In the Intelligence 360 plan
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.