{"answers":{"affected":"4 open source packages ship an affected version, including koa. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-8129 exists.","fix":"Upgrade koa to a fixed version for your release line: 2.16.2 or 3.0.1.","what":"CVE-2025-8129 is a medium-severity vulnerability in KoaJS Koa, published on 25 Jul 2025. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2025-8129 and fix it if it is affected.\n\nWhat it is: CVE-2025-8129 is a medium-severity vulnerability in KoaJS Koa, published on 25 Jul 2025. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-8129 exists.\n\nAffected packages and fixed versions:\n- koa (npm): affected from 2.0.0; fixed in 2.16.2\n- koa (npm): affected from 2.0.0; fixed in 2.16.2\n- koa (npm): affected from 3.0.0-alpha.0; fixed in 3.0.1\n- koa (npm): affected from 3.0.0-alpha.0; fixed in 3.0.1\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-8129/ (Markdown: https://insights.sbomify.com/CVE-2025-8129/index.md)","id":"CVE-2025-8129","markdown":"https://insights.sbomify.com/CVE-2025-8129/index.md","name":"CVE-2025-8129","record":{"aliases":["CVE-2025-54420","GHSA-jgmv-j7ww-jx2x","ROOT-APP-NPM-CVE-2025-8129"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"KoaJS web framework","requires_auth":"low_privilege","summary":"Attackers can exploit an open redirect in the KoaJS framework's HTTP header handler to redirect users to malicious sites.","user_interaction":"required","vuln_class":"open_redirect"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"VulDB","cpe":[{"product":"koa","vendor":"koajs"}],"cvss":{"score":5.1,"severity":"medium","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P","version":"4.0"},"cwes":[{"id":"CWE-601","name":"URL Redirection to Untrusted Site"}],"description":"A vulnerability, which was classified as problematic, was found in KoaJS Koa up to 3.0.0. Affected is the function back in the library lib/response.js of the component HTTP Header Handler. The manipulation of the argument Referrer leads to open redirect. It is possible to launch the attack remotely. The exploit has been disclosed to the public and may be used.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"KoaJS Koa HTTP Header response.js back redirect","id":"CVE-2025-8129","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"open_redirect","year":"2025"},"n_packages":4,"n_references":5,"next":{"headline":"This CVE ID has been rejected or withdrawn by its CVE Numbering Authority.","id":"CVE-2025-8130"},"packages":[{"ecosystem":"npm","fixed":["2.16.2"],"introduced":["2.0.0"],"last_affected":[],"package":"koa","purl":null,"source":"GHSA-jgmv-j7ww-jx2x"},{"ecosystem":"npm","fixed":["2.16.2"],"introduced":["2.0.0"],"last_affected":[],"package":"koa","purl":"pkg:npm/koa","source":"GHSA-jgmv-j7ww-jx2x"},{"ecosystem":"npm","fixed":["3.0.1"],"introduced":["3.0.0-alpha.0"],"last_affected":[],"package":"koa","purl":null,"source":"GHSA-jgmv-j7ww-jx2x"},{"ecosystem":"npm","fixed":["3.0.1"],"introduced":["3.0.0-alpha.0"],"last_affected":[],"package":"koa","purl":"pkg:npm/koa","source":"GHSA-jgmv-j7ww-jx2x"}],"prev":{"headline":"zhousg letao product.js unrestricted upload","id":"CVE-2025-8128"},"products":["Koa"],"published":"2025-07-25","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,"headline":"XSS at ctx.redirect() function in Koajs","id":"CVE-2025-32379","kev_date_added":null,"published":"2025-04-09"},{"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":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-07-25","vendors":["KoaJS"]},"summary":"Attackers can exploit an open redirect in the KoaJS framework's HTTP header handler to redirect users to malicious sites.","url":"https://insights.sbomify.com/CVE-2025-8129/"}