GHSA-x2rg-q646-7m2v
Koajs vulnerable to Cross-Site Scripting (XSS) at ctx.redirect() function
At a glance
- Published
- Updated
- CVE
- CVE-2025-32379
- CVSS_V3
- CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L
Description
### 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 1. Redirect user to another phishing site 2. Make request to another endpoint of the application based on user's cookie 3. Steal user's cookie
Affected packages
| Package | Versions |
|---|---|
| npm · koa | introduced 0, fixed 2.16.1 |
| npm · koa | introduced 3.0.0-alpha.1, fixed 3.0.0-alpha.5 |
References
- https://github.com/koajs/koa/security/advisories/GHSA-x2rg-q646-7m2v WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-32379 ADVISORY
- https://github.com/koajs/koa/commit/ff25eb4a7f2392df46481fe86355161067687312 WEB
- https://github.com/koajs/koa PACKAGE
Sources
| Source | Licence |
|---|---|
| OSV.dev | CC-BY 4.0 — GitHub Advisory Database |