CVE-2025-32379
MEDIUM 6.1CVSS 3.1Koajs vulnerable to Cross-Site Scripting (XSS) at ctx.redirect() function
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.
- Published
- 9 Apr 2025
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-79
- Also known as
- GHSA-x2rg-q646-7m2v
- Sources
- NVDJSONOSV GHSA-x2rg-q646-7m2vJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.0 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.0 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | koajs | koacpe:2.3:a:koajs:koa:*:*:*:*:*:node.js:*:* |
< 2.16.1 | 2.16.1 |
| NVD | koajs | koacpe:2.3:a:koajs:koa:3.0.0:alpha0:*:*:*:node.js:*:* |
= 3.0.0 | |
| NVD | koajs | koacpe:2.3:a:koajs:koa:3.0.0:alpha1:*:*:*:node.js:*:* |
= 3.0.0 | |
| NVD | koajs | koacpe:2.3:a:koajs:koa:3.0.0:alpha2:*:*:*:node.js:*:* |
= 3.0.0 | |
| NVD | koajs | koacpe:2.3:a:koajs:koa:3.0.0:alpha3:*:*:*:node.js:*:* |
= 3.0.0 | |
| NVD | koajs | koacpe:2.3:a:koajs:koa:3.0.0:alpha4:*:*:*:node.js:*:* |
= 3.0.0 | |
| OSV | npm | koa | < 2.16.1 | 2.16.1 |
| OSV | npm | koa | >= 3.0.0-alpha.1, < 3.0.0-alpha.5 | 3.0.0-alpha.5 |
References
- https://github.com/koajs/koa/commit/ff25eb4a7f2392df46481fe86355161067687312 · Patch, WEB
- https://github.com/koajs/koa/security/advisories/GHSA-x2rg-q646-7m2v · Patch, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-32379 · ADVISORY
- https://github.com/koajs/koa · PACKAGE
History
- 25 Nov 2026 20:57 UTC · NVD: first stored (published 9 Apr 2025)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 9 Apr 2025)