Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. koa
  4. ›
  5. CVE-2025-32379

CVE-2025-32379: Koajs vulnerable to Cross-Site Scripting (XSS) at ctx.redirect() function

April 9, 2025

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.

References

  • github.com/advisories/GHSA-x2rg-q646-7m2v
  • github.com/koajs/koa
  • github.com/koajs/koa/commit/ff25eb4a7f2392df46481fe86355161067687312
  • github.com/koajs/koa/security/advisories/GHSA-x2rg-q646-7m2v
  • nvd.nist.gov/vuln/detail/CVE-2025-32379

Code Behaviors & Features

Detect and mitigate CVE-2025-32379 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 2.16.1, all versions starting from 3.0.0-alpha.1 before 3.0.0-alpha.5

Fixed versions

  • 2.16.1
  • 3.0.0-alpha.5

Solution

Upgrade to versions 2.16.1, 3.0.0-alpha.5 or above.

Impact 5 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

npm/koa/CVE-2025-32379.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:54 +0000.