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

- Severity: Medium 4.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.29%, higher than 23% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-10-21T15:09:06.000Z
- Modified: 2026-10-08T11:10:00.250Z
- Also known as: GHSA-g8mr-fgfg-5qpc
- Weaknesses: CWE-601
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Koa is expressive middleware for Node.js using ES2017 async functions. In versions 2.16.2 to before 2.16.3 and 3.0.1 to before 3.0.3, a bypass to CVE-2025-8129 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 issue has been patched in version 3.0.3.

(As written by CVE List.)

## Affected

- koajs koa: >= 2.16.2, < 2.16.3; >= 3.0.1, < 3.0.3; from 3.0.1 before 3.0.3; 2.16.2
- koa (npm): from 3.0.1 before 3.0.3; from 2.16.2 before 2.16.3

## Every score

- GitHub_M: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N`
- GitHub: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/koajs/koa/security/advisories/GHSA-g8mr-fgfg-5qpc> (exploit, vendor-advisory, web)
- <https://github.com/koajs/koa/commit/769fd75cc6b30d72493b370b5a3ae2332ca03c5b> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-62595> (advisory)
- <https://github.com/koajs/koa> (package)

## Sources

- CVE List: [CVE-2025-62595](https://www.cve.org/CVERecord?id=CVE-2025-62595), CVE Terms of Use, modified 2025-10-21
- GitHub Advisory Database: [GHSA-g8mr-fgfg-5qpc](https://github.com/advisories/GHSA-g8mr-fgfg-5qpc), CC-BY-4.0, modified 2026-02-03
- NVD: [CVE-2025-62595](https://nvd.nist.gov/vuln/detail/CVE-2025-62595), Public domain, modified 2026-10-08

---

Page: https://cve.day/CVE-2025-62595 · Whole record: https://cve.day/CVE-2025-62595.json · Rebuilt by cve.day 2026-11-25T22:59:06.609Z
