Skip to content

CVE-2025-32379 XSS at ctx.redirect() function in Koajs

MediumCVSS 6.1 EPSS 0.27%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: total

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.

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
koajs koa < 2.16.1; = 3.0.0-alpha0; = 3.0.0-alpha1; = 3.0.0-alpha2 +4 more 2.16.1 Fixed
npm koa(npm) < 2.16.1; >= 3.0.0-alpha.1, < 3.0.0-alpha.5 2.16.1, 3.0.0-alpha.5 Fixed

Affected products

ProductAffected versionsFixed in
npm koa(npm) < 2.16.1 2.16.1
npm koa(npm) >= 3.0.0-alpha.1, < 3.0.0-alpha.5 3.0.0-alpha.5
koajs koa = >= 3.0.0-alpha.0, < 3.0.0-alpha.5 No fix listed
koajs koa = < 2.16.1 No fix listed
koajs koa < 2.16.1 2.16.1
koajs koa = 3.0.0-alpha0 No fix listed
koajs koa = 3.0.0-alpha1 No fix listed
koajs koa = 3.0.0-alpha2 No fix listed
koajs koa = 3.0.0-alpha3 No fix listed
koajs koa = 3.0.0-alpha4 No fix listed

References