{"answers":{"affected":"4 open source packages ship an affected version, including koa. It affects 1 product.","exploited":"There is no known exploitation of CVE-2025-32379 in the wild and no public exploit code.","fix":"Upgrade koa to a fixed version for your release line: 2.16.1 or 3.0.0-alpha.5.","what":"CVE-2025-32379 is a medium-severity cross-site scripting vulnerability in koajs koa, published on 9 Apr 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2025-32379 and fix it if it is affected.\n\nWhat it is: CVE-2025-32379 is a medium-severity cross-site scripting vulnerability in koajs koa, published on 9 Apr 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2025-32379 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- koa (npm): affected all versions; fixed in 2.16.1\n- koa (npm): affected all versions; fixed in 2.16.1\n- koa (npm): affected from 3.0.0-alpha.1; fixed in 3.0.0-alpha.5\n- koa (npm): affected from 3.0.0-alpha.1; fixed in 3.0.0-alpha.5\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-32379/ (Markdown: https://insights.sbomify.com/CVE-2025-32379/index.md)","id":"CVE-2025-32379","markdown":"https://insights.sbomify.com/CVE-2025-32379/index.md","name":"CVE-2025-32379","record":{"aliases":["CLSA-2026-1774830253","GHSA-x2rg-q646-7m2v","ROOT-APP-NPM-CVE-2025-32379"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Koa web framework","requires_auth":"none","summary":"Attackers can execute arbitrary JavaScript in user browsers via the ctx.redirect() function in the Koa web framework.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"koa","vendor":"koajs"}],"cvss":{"score":5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"XSS at ctx.redirect() function in Koajs","id":"CVE-2025-32379","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"xss","year":"2025"},"n_packages":4,"n_references":2,"next":{"headline":"Apollo Router Query Validation Vulnerable to Excessive Resource Consumption via Named Fragment Processing","id":"CVE-2025-32380"},"packages":[{"ecosystem":"npm","fixed":["2.16.1"],"introduced":["0"],"last_affected":[],"package":"koa","purl":null,"source":"GHSA-x2rg-q646-7m2v"},{"ecosystem":"npm","fixed":["2.16.1"],"introduced":["0"],"last_affected":[],"package":"koa","purl":"pkg:npm/koa","source":"GHSA-x2rg-q646-7m2v"},{"ecosystem":"npm","fixed":["3.0.0-alpha.5"],"introduced":["3.0.0-alpha.1"],"last_affected":[],"package":"koa","purl":null,"source":"GHSA-x2rg-q646-7m2v"},{"ecosystem":"npm","fixed":["3.0.0-alpha.5"],"introduced":["3.0.0-alpha.1"],"last_affected":[],"package":"koa","purl":"pkg:npm/koa","source":"GHSA-x2rg-q646-7m2v"}],"prev":{"headline":"Shopware's default newsletter opt-in settings allow for mass sign-up abuse","id":"CVE-2025-32378"},"products":["koa"],"published":"2025-04-09","related":[{"cvss_score":9.2,"headline":"Koa has Inefficient Regular Expression Complexity","id":"CVE-2025-25200","kev_date_added":null,"published":"2025-02-12"},{"cvss_score":7.5,"headline":"Koa has Host Header Injection via `ctx.hostname`","id":"CVE-2026-27959","kev_date_added":null,"published":"2026-02-26"},{"cvss_score":5.1,"headline":"KoaJS Koa HTTP Header response.js back redirect","id":"CVE-2025-8129","kev_date_added":null,"published":"2025-07-25"},{"cvss_score":4.3,"headline":"Koa Vulnerable to Open Redirect via Trailing Double-Slash (//) in back Redirect Logic","id":"CVE-2025-62595","kev_date_added":null,"published":"2025-10-21"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-04-09","vendors":["koajs"]},"summary":"Attackers can execute arbitrary JavaScript in user browsers via the ctx.redirect() function in the Koa web framework.","url":"https://insights.sbomify.com/CVE-2025-32379/"}