CVE-2025-32379Koajs Koa
Medium 6.1 No auth needed
Follow: this CVE · Koajs · Koajs Koa We alert you by email or Slack (account required).
- Priority
- 52
- CVSS 3.1
- 6.1
- EPSS
- —
- Auth required
- No
- Published
- Apr 9, 2025
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
What happens
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.
What to do
- Apply the vendor's security update for Koa.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | koa |
< 2.16.1 |
2.16.1 |
npm install koa@2.16.1 |
| npm | koa |
≥ 3.0.0-alpha.1 < 3.0.0-alpha.5 |
3.0.0-alpha.5 |
npm install koa@3.0.0-alpha.5 |
Per OSV / GitHub Advisories (GHSA-x2rg-q646-7m2v). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| koajs | koa | < 2.16.1 |
| koajs | koa | 3.0.0 |
| koajs | koa | 3.0.0 |
| koajs | koa | 3.0.0 |
| koajs | koa | 3.0.0 |
| koajs | koa | 3.0.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Patch Vendor Advisory