{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-32379","id":"CVE-2025-32379","title":"XSS at ctx.redirect() function in Koajs","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.","descriptionLong":"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.","published":"2025-04-09T15:56:40.574Z","updated":"2026-10-28T02:31:13.705294719Z","reserved":"2025-04-06T19:46:02.462Z","status":"Analyzed","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L","rating":"medium","source":"github.com"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"NVD"},{"version":"3.1","score":5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L","rating":"medium","source":"OSV"},{"version":"3.1","score":5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L","rating":"medium","source":"GitHub"}],"rating":"medium","products":["koajs koa"],"affectedProducts":[{"vendor":"koajs","product":"koa","defaultStatus":null,"versions":[{"version":">= 3.0.0-alpha.0, < 3.0.0-alpha.5","status":"affected"},{"version":"< 2.16.1","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"koa","purl":"pkg:npm/koa","ranges":["<2.16.1",">=3.0.0-alpha.1 <3.0.0-alpha.5"],"fixed":["2.16.1","3.0.0-alpha.5"],"advisory":"GHSA-x2rg-q646-7m2v"}],"cwes":["CWE-79"],"aliases":["GHSA-x2rg-q646-7m2v"],"references":[{"url":"https://github.com/koajs/koa/security/advisories/GHSA-x2rg-q646-7m2v","tags":["x_refsource_CONFIRM","Patch","Vendor Advisory","advisory","web"]},{"url":"https://github.com/koajs/koa/commit/ff25eb4a7f2392df46481fe86355161067687312","tags":["x_refsource_MISC","Patch","fix","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/32xxx/CVE-2025-32379.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-32379","tags":["advisory"]},{"url":"https://github.com/koajs/koa","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total"},"epss":0.00267,"epssPercentile":0.19105,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-32379","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-32379","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-32379","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-x2rg-q646-7m2v","ok":true,"note":"GHSA-x2rg-q646-7m2v"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-32379","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}