CVE-2025-32379

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.
Configurations

Configuration 1 (hide)

OR cpe:2.3:a:koajs:koa:*:*:*:*:*:node.js:*:*
cpe:2.3:a:koajs:koa:3.0.0:alpha0:*:*:*:node.js:*:*
cpe:2.3:a:koajs:koa:3.0.0:alpha1:*:*:*:node.js:*:*
cpe:2.3:a:koajs:koa:3.0.0:alpha2:*:*:*:node.js:*:*
cpe:2.3:a:koajs:koa:3.0.0:alpha3:*:*:*:node.js:*:*
cpe:2.3:a:koajs:koa:3.0.0:alpha4:*:*:*:node.js:*:*

History

14 Jan 2026, 14:36

Type Values Removed Values Added
Summary
  • (es) Koa es un middleware expresivo para Node.js que utiliza funciones asíncronas de ES2017. En koa anteriores a la 2.16.1 y a la 3.0.0-alpha.5, pasar información de usuario no confiable a ctx.redirect(), incluso después de depurarla, puede ejecutar código JavaScript en el usuario que usa la aplicación. Este problema se ha corregido en las versiones 2.16.1 y 3.0.0-alpha.5.
CPE cpe:2.3:a:koajs:koa:3.0.0:alpha0:*:*:*:node.js:*:*
cpe:2.3:a:koajs:koa:3.0.0:alpha2:*:*:*:node.js:*:*
cpe:2.3:a:koajs:koa:*:*:*:*:*:node.js:*:*
cpe:2.3:a:koajs:koa:3.0.0:alpha1:*:*:*:node.js:*:*
cpe:2.3:a:koajs:koa:3.0.0:alpha4:*:*:*:node.js:*:*
cpe:2.3:a:koajs:koa:3.0.0:alpha3:*:*:*:node.js:*:*
First Time Koajs koa
Koajs
References () https://github.com/koajs/koa/commit/ff25eb4a7f2392df46481fe86355161067687312 - () https://github.com/koajs/koa/commit/ff25eb4a7f2392df46481fe86355161067687312 - Patch
References () https://github.com/koajs/koa/security/advisories/GHSA-x2rg-q646-7m2v - () https://github.com/koajs/koa/security/advisories/GHSA-x2rg-q646-7m2v - Patch, Vendor Advisory

09 Apr 2025, 16:15

Type Values Removed Values Added
New CVE

Information

Published : 2025-04-09 16:15

Updated : 2026-01-14 14:36


NVD link : CVE-2025-32379

Mitre link : CVE-2025-32379

CVE.ORG link : CVE-2025-32379


JSON object : View

Products Affected

koajs

  • koa
CWE
CWE-79

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')