XSS in Koajs Koa

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.

Vulnerability class: XSS (Cross-Site Scripting)

Published · last modified .

CVSS v3 metric

CVSS v3 base score 5.0 (Medium). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L.

EPSS exploit prediction

EPSS 0.003, 19.0th percentile (scored ); unchanged over 30 days. About EPSS.

Affected products

  • Koajs Koa — versions >= 3.0.0-alpha.0, < 3.0.0-alpha.5, 3.0.0, < 2.16.1

Weakness classification (CWE)

Public exploits and proof-of-concept code

Also mentioned in 2 other repositories (ARPSyndicate/cve-scores, Motivesoft/vscode-weather-status). These reference the CVE in a list, notes or a scanner and are not exploit code for it.

References