Security mailing lists by PureSourceCode

CVE-2025-32379

MEDIUM 6.1CVSS 3.1

Koajs vulnerable to Cross-Site Scripting (XSS) at ctx.redirect() function

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.

Published
9 Apr 2025
Last modified
17 Jun 2026
Assigned by
security-advisories@github.com
NVD status
Analyzed
Weakness
CWE-79
Also known as
GHSA-x2rg-q646-7m2v
Sources
NVDJSONOSV GHSA-x2rg-q646-7m2vJSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
NVD security-advisories@github.com (Secondary) CVSS 3.1 MEDIUM 5.0 CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L
OSV GitHub CVSS 3.1 MEDIUM 5.0 CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD koajs koa
cpe:2.3:a:koajs:koa:*:*:*:*:*:node.js:*:*
< 2.16.1 2.16.1
NVD koajs koa
cpe:2.3:a:koajs:koa:3.0.0:alpha0:*:*:*:node.js:*:*
= 3.0.0
NVD koajs koa
cpe:2.3:a:koajs:koa:3.0.0:alpha1:*:*:*:node.js:*:*
= 3.0.0
NVD koajs koa
cpe:2.3:a:koajs:koa:3.0.0:alpha2:*:*:*:node.js:*:*
= 3.0.0
NVD koajs koa
cpe:2.3:a:koajs:koa:3.0.0:alpha3:*:*:*:node.js:*:*
= 3.0.0
NVD koajs koa
cpe:2.3:a:koajs:koa:3.0.0:alpha4:*:*:*:node.js:*:*
= 3.0.0
OSV npm koa < 2.16.1 2.16.1
OSV npm koa >= 3.0.0-alpha.1, < 3.0.0-alpha.5 3.0.0-alpha.5

References

History

  • 25 Nov 2026 20:57 UTC · NVD: first stored (published 9 Apr 2025)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 9 Apr 2025)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.