CVE-2025-32379 Details
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.
A cross-site scripting vulnerability has been identified in Koa versions prior to 2.16.1 and prior to 3.0.0-alpha.5. The issue arises when untrusted user input is passed to the ctx.redirect() function, even after sanitization, potentially allowing the execution of JavaScript code in the context of the user using the application.
Users can upgrade to Koa version 2.16.1 or 3.0.0-alpha.5 to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 9, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/koajs/koa/commit/ff25eb4a7f2392df46481fe86355161067687312 | [email protected] | Patch |
| https://github.com/koajs/koa/security/advisories/GHSA-x2rg-q646-7m2v | [email protected] | PatchVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| koajs koa | < 2.16.1 3.0.0 alpha0 3.0.0 alpha1 3.0.0 alpha2 3.0.0 alpha3 3.0.0 alpha4 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jan 14, 2026 | Initial Analysis | [email protected] |
| Apr 9, 2025 | New CVE Received | [email protected] |