{"id":"CVE-2025-32379","state":"PUBLISHED","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.","publishedAt":"2025-04-09T15:56:40.574Z","updatedAt":"2025-04-09T20:45:15.899Z","severity":{"score":5,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L","source":"GitHub_M"},"assigner":"GitHub_M","products":["koajs koa"],"affected":[{"vendor":"koajs","product":"koa","versions":[{"version":">= 3.0.0-alpha.0, < 3.0.0-alpha.5","status":"affected"},{"version":"< 2.16.1","status":"affected"}]}],"references":["https://github.com/koajs/koa/security/advisories/GHSA-x2rg-q646-7m2v","https://github.com/koajs/koa/commit/ff25eb4a7f2392df46481fe86355161067687312"],"weaknesses":["CWE-79"],"ingestedAt":"2026-10-29T20:08:55.257Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/32xxx/CVE-2025-32379.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2025-32379","state":"PUBLISHED","datePublished":"2025-04-09T15:56:40.574Z","dateUpdated":"2025-04-09T20:45:15.899Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2025-04-06T19:46:02.462Z"},"containers":{"cna":{"title":"XSS at ctx.redirect() function in Koajs","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"koajs","product":"koa","versions":[{"version":">= 3.0.0-alpha.0, < 3.0.0-alpha.5","status":"affected"},{"version":"< 2.16.1","status":"affected"}]}],"references":[{"url":"https://github.com/koajs/koa/security/advisories/GHSA-x2rg-q646-7m2v","name":"https://github.com/koajs/koa/security/advisories/GHSA-x2rg-q646-7m2v","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/koajs/koa/commit/ff25eb4a7f2392df46481fe86355161067687312","name":"https://github.com/koajs/koa/commit/ff25eb4a7f2392df46481fe86355161067687312","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"LOW","baseScore":5,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-79","lang":"en","description":"CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2025-04-09T15:56:40.574Z"},"source":{"advisory":"GHSA-x2rg-q646-7m2v","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-04-09T17:29:51.749257Z","id":"CVE-2025-32379","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-04-09T20:45:15.899Z"}}]}}}