CVE-2025-32379CWE-79

XSS at ctx.redirect() function in Koajs

Medium · published April 9, 2025

CVSS v3.1
5.0
EPSS
0%
Percentile
17.0
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
5.0 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L
CVSS v4.0
Not supplied
EPSS
0.00262 · 17.0th percentile
Weakness
CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Published
2025-04-09T15:56Z
EPSS history
Timeline
  • 09 APR 15:56Z
    XSS at ctx.redirect() function in Koajs
    cvelistv5