CVE-2025-32379 json
XSS at ctx.redirect() function in Koajs
published 2025-04-09 19 mo ago modified 2026-06-17 4 mo ago also EUVD-2025-10545 , GHSA-x2rg-q646-7m2v
- cvss
- 5.0
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 18%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm koa 2.16.1, 3.0.0-alpha.5
- koajs koa 2.16.1, 3.0.0-alpha.5
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2025-32379 updated cvss 5.0
koa: XSS at ctx.redirect() function in Koajs
-
Red Hat Developer Hub 1 rhdh/rhdh-hub-rhel9affected: workaround, no fix available “Fix deferred”
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- total
- Assessed
- 19 mo ago
Exploit prediction
0.27% chance of exploitation in the next 30 days, higher than 18% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 5.0 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L |
| GitHub | 3.1 | 5.0 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L |
| NVD | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | koa | <2.16.1 >=3.0.0-alpha.1, <3.0.0-alpha.5 |
2.16.1 3.0.0-alpha.5 |
Affected products
- koajs koa
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
github.com
/koajs/koa/commit/ff25eb4a7f2392df46481fe86355161067687312
web, patch
-
github.com
/koajs/koa/security/advisories/GHSA-x2rg-q646-7m2v
web, patch, vendor-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2025-32379
advisory
-
github.com
/koajs/koa
package
Sources
- CVE List CVE-2025-32379
- GitHub Advisory GHSA-x2rg-q646-7m2v
- NVD CVE-2025-32379
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.