CVE-2025-32379 MEDIUM

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

Vendor Koajs
Product koa
Weakness CWE-79 · XSS
Published April 9, 2025
Last update April 9, 2025

CVSS base score

5.0/10
Attack vector Network
Attack complexity High
Privileges required None
User interaction Required
Confidentiality Low
Integrity Low

CVSS vector

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

April 9, 2025 CVE published
April 9, 2025 Record updated