# CVE-2025-32379: XSS at ctx.redirect() function in Koajs

- Severity: Medium 5.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L`
- 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.27%, higher than 19% of CVEs (2026-12-01)
- Published: 2025-04-09T13:00:07.000Z
- Modified: 2026-06-17T09:11:54.453Z
- Also known as: GHSA-x2rg-q646-7m2v
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- koajs koa: >= 3.0.0-alpha.0, < 3.0.0-alpha.5; < 2.16.1; before 2.16.1; 3.0.0
- koa (npm): before 2.16.1; from 3.0.0-alpha.1 before 3.0.0-alpha.5

## Every score

- GitHub_M: CVSS:3.1 5.0 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L`
- GitHub: CVSS:3.1 5.0 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L`
- 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-x2rg-q646-7m2v> (patch, vendor-advisory, web)
- <https://github.com/koajs/koa/commit/ff25eb4a7f2392df46481fe86355161067687312> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-32379> (advisory)
- <https://github.com/koajs/koa> (package)

## Sources

- CVE List: [CVE-2025-32379](https://www.cve.org/CVERecord?id=CVE-2025-32379), CVE Terms of Use, modified 2025-04-09
- GitHub Advisory Database: [GHSA-x2rg-q646-7m2v](https://github.com/advisories/GHSA-x2rg-q646-7m2v), CC-BY-4.0, modified 2025-04-09
- NVD: [CVE-2025-32379](https://nvd.nist.gov/vuln/detail/CVE-2025-32379), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-32379 · Whole record: https://cve.day/CVE-2025-32379.json · Rebuilt by cve.day 2026-11-25T22:58:56.310Z
