Medium severity · published Apr 9, 2025
CVE-2025-32379
Koa is expressive middleware for Node.js using ES2017 async functions
6.1
CVSS
0.3%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
Low
Integrity
Low
Availability
None
Scope
Changed
Exploitation
Is it being used?
Exploit prediction (EPSS)0.3% · higher than 18% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
KO
Koa · Koajs
before 2.16.1; 3.0.0; 3.0.0; 3.0.0; 3.0.0; 3.0.0 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2025-32379
CVE.org
https://www.cve.org/CVERecord?id=CVE-2025-32379
Patch
https://github.com/koajs/koa/commit/ff25eb4a7f2392df46481fe86355161067687312
Patch
https://github.com/koajs/koa/security/advisories/GHSA-x2rg-q646-7m2v
More from Koa
7.5
CVE-2026-27959
Koa has Host Header Injection via `ctx.hostname`
7.5
CVE-2025-25200
Koa is expressive middleware for Node.js using ES2017 async functions
6.1
CVE-2025-62595
Koa Vulnerable to Open Redirect via Trailing Double-Slash (//) in back Redirect Logic
6.1
CVE-2025-8129
KoaJS Koa HTTP Header response.js back redirect
