Skip to main content
← All vulnerabilities
CVE-2025-32379GHSA-X2RG-Q646-7M2V

XSS at ctx.redirect() function in Koajs

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.0.0-alpha.5, 2.16.1
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: total

  3. Record last updated

Affected versions

  • koajs koa

    From 3.0.0-alpha.0 · fixed in 3.0.0-alpha.5; fixed in 2.16.1

  • koanpm

    fixed in 2.16.1

  • koanpm

    From 3.0.0-alpha.1 · fixed in 3.0.0-alpha.5

References 2

GitHub · koajs/koa