{"id":"CVE-2025-32379","summary":"XSS at ctx.redirect() function in Koajs","details":"Koa is expressive middleware for Node.js using ES2017 async functions. In koa \u003c 2.16.1 and \u003c 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.","aliases":["GHSA-x2rg-q646-7m2v"],"modified":"2026-07-15T01:49:19.978913522Z","published":"2025-04-09T15:56:40.574Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-79"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/32xxx/CVE-2025-32379.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/32xxx/CVE-2025-32379.json"},{"type":"ADVISORY","url":"https://github.com/koajs/koa/security/advisories/GHSA-x2rg-q646-7m2v"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-32379"},{"type":"FIX","url":"https://github.com/koajs/koa/commit/ff25eb4a7f2392df46481fe86355161067687312"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/koajs/koa","events":[{"introduced":"0"},{"fixed":"ba1482206995d99e46b47c8de19980b2f526aaa0"},{"fixed":"ff25eb4a7f2392df46481fe86355161067687312"}],"database_specific":{"cpe":"cpe:2.3:a:koajs:koa:*:*:*:*:*:node.js:*:*","extracted_events":[{"introduced":"0"},{"fixed":"2.16.1"}],"source":["CPE_RANGE","REFERENCES"]}}],"versions":["v2.16.0","2.15.4","3.0.0-alpha.4","2.16.0","3.0.0-alpha.3","2.15.3","3.0.0-alpha.2","2.15.2","2.15.1","2.15.0","2.14.2","3.0.0-alpha.1","3.0.0-alpha.0","2.14.1","2.14.0","2.13.4","2.13.3","2.13.2","2.13.1","2.13.0","2.12.1","2.12.0","2.11.0","2.10.0","2.9.0","2.8.2","2.8.1","2.8.0","2.7.0","2.6.2","2.6.1","2.6.0","2.5.3","0.21.0","2.5.2","2.5.1","2.5.0","2.4.1","2.4.0","2.3.0","2.1.0","2.0.1","2.0.0-alpha.8","2.0.0-alpha.7","2.0.0-alpha.6","2.0.0-alpha.5","2.0.0-alpha.4","2.0.0-alpha.3","2.0.0-alpha.2","2.0.0-alpha.1","1.1.0","1.0.0","0.20.0","0.19.1","0.19.0","0.18.1","0.18.0","0.17.0","0.16.0","0.15.0","0.14.0","0.13.0","0.12.2","0.12.1","0.12.0","0.11.0","0.10.0","0.9.0","0.8.2","0.8.1","0.8.0","0.7.0","0.6.3","0.6.2","0.6.1","0.6.0","0.5.5","0.5.4","0.5.3","0.5.2","0.5.1","0.5.0","0.4.0","0.3.0","0.2.1","0.2.0","0.1.2","0.1.1","0.1.0","0.0.2"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-32379.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L"}]}