koa
Affected
- introduced
0, fixed2.16.1(semver)
Fixed versions
2.16.1
Fix
- Fixed version
2.16.1npm install [email protected]
Advisory
Also known as: CVE-2025-32379
Koajs vulnerable to Cross-Site Scripting (XSS) at ctx.redirect() function
Summary
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.
Patches
This issue is patched in 2.16.1 and 3.0.0-alpha.5.
PoC
Coming soon...
Impact
Medium Basis: The source's own band: MODERATE
0, fixed 2.16.1 (semver)2.16.1
2.16.1npm install [email protected]3.0.0-alpha.1, fixed 3.0.0-alpha.5 (semver)3.0.0-alpha.5
3.0.0-alpha.5npm install [email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0