{"answers":{"affected":"2 open source packages ship an affected version, including git-commiters. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-59831 exists.","fix":"Upgrade git-commiters to 0.1.2 or later.","what":"CVE-2025-59831 is a high-severity vulnerability in snowyu git-commiters.js, published on 25 Sep 2025."},"fix_prompt":"Check this codebase for CVE-2025-59831 and fix it if it is affected.\n\nWhat it is: CVE-2025-59831 is a high-severity vulnerability in snowyu git-commiters.js, published on 25 Sep 2025. \nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-59831 exists.\n\nAffected packages and fixed versions:\n- git-commiters (npm): affected all versions; fixed in 0.1.2\n- git-commiters (npm): affected all versions; fixed in 0.1.2\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-59831/ (Markdown: https://insights.sbomify.com/CVE-2025-59831/index.md)","id":"CVE-2025-59831","markdown":"https://insights.sbomify.com/CVE-2025-59831/index.md","name":"CVE-2025-59831","record":{"aliases":["GHSA-g38c-wxjf-xrh6"],"analysis":null,"analysis_generated_by":null,"assigner":"GitHub_M","cpe":[{"product":"git-commiters","vendor":"riceball"}],"cvss":{"score":8.7,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"},{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command"}],"description":"git-commiters is a Node.js function module providing committers stats for their git repository. Prior to version 0.1.2, there is a command injection vulnerability in git-commiters. This vulnerability manifests with the library's primary exported API: gitCommiters(options, callback) which allows specifying options such as cwd for current working directory and revisionRange as a revision pointer, such as HEAD. However, the library does not sanitize for user input or practice secure process execution API to separate commands from their arguments and as such, uncontrolled user input is concatenated into command execution. This issue has been patched in version 0.1.2.","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":"`git-comiters` Command Injection vulnerability","id":"CVE-2025-59831","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":null,"year":"2025"},"n_packages":2,"n_references":2,"next":{"headline":"Horrila Stored XSS Vulnerability via Ticket Comment section","id":"CVE-2025-59832"},"packages":[{"ecosystem":"npm","fixed":["0.1.2"],"introduced":["0"],"last_affected":[],"package":"git-commiters","purl":null,"source":"GHSA-g38c-wxjf-xrh6"},{"ecosystem":"npm","fixed":["0.1.2"],"introduced":["0"],"last_affected":[],"package":"git-commiters","purl":"pkg:npm/git-commiters","source":"GHSA-g38c-wxjf-xrh6"}],"prev":{"headline":"Rack QueryParser has an unsafe default allowing params_limit bypass via semicolon-separated parameters","id":"CVE-2025-59830"},"products":["git-commiters.js"],"published":"2025-09-25","related":[],"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":"total"},"state":"PUBLISHED","updated":"2025-09-25","vendors":["snowyu"]},"summary":null,"url":"https://insights.sbomify.com/CVE-2025-59831/"}