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

CVE-2025-62595: Koa Vulnerable to Open Redirect via Trailing Double-Slash (//) in back Redirect Logic

October 21, 2025

A bypass was discovered in the Koa.js framework affecting its back redirect functionality. In certain circumstances, an attacker can manipulate the Referer header to force a user’s browser to navigate to an external, potentially malicious website. This occurs because the implementation incorrectly treats some specially crafted URLs as safe relative paths. Exploiting this vulnerability could allow attackers to perform phishing, social engineering, or other redirect-based attacks on users of affected applications.

This vulnerability affects the code referenced in GitHub Advisory GHSA-jgmv-j7ww-jx2x (which is tracked as CVE‑2025‑54420).

References

  • github.com/advisories/GHSA-g8mr-fgfg-5qpc
  • github.com/koajs/koa
  • github.com/koajs/koa/commit/769fd75cc6b30d72493b370b5a3ae2332ca03c5b
  • github.com/koajs/koa/security/advisories/GHSA-g8mr-fgfg-5qpc
  • nvd.nist.gov/vuln/detail/CVE-2025-62595

Code Behaviors & Features

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

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.16.2 before 2.16.3, all versions starting from 3.0.1 before 3.0.3

Fixed versions

  • 3.0.3
  • 2.16.3

Solution

Upgrade to versions 2.16.3, 3.0.3 or above.

Impact 4.7 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-601: URL Redirection to Untrusted Site ('Open Redirect')

Source file

npm/koa/CVE-2025-62595.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 07 Dec 2025 12:17:54 +0000.