Live threats

All CVEs / Koajs

CVE-2025-32379Koajs Koa

Medium 6.1 No auth needed

Priority
52
CVSS 3.1
6.1
EPSS
—
Auth required
No
Published
Apr 9, 2025
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-79
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Koa.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm koa < 2.16.1 2.16.1 npm install koa@2.16.1
npm koa ≥ 3.0.0-alpha.1 < 3.0.0-alpha.5 3.0.0-alpha.5 npm install koa@3.0.0-alpha.5

Per OSV / GitHub Advisories (GHSA-x2rg-q646-7m2v). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
koajskoa< 2.16.1
koajskoa3.0.0
koajskoa3.0.0
koajskoa3.0.0
koajskoa3.0.0
koajskoa3.0.0

Official sources

References

Links published by the sources. Open them with care.