{"id":"CVE-2025-59831","published":"2025-09-25T13:34:02Z","modified":"2025-09-25T14:43:16Z","title":"`git-comiters` Command Injection vulnerability","vendor":"snowyu","product":"git-commiters.js","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.7,"severity":"HIGH","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.04171,"percentile":0.91139,"provenance":"source"},"cwes":[{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command"},{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"references":[{"url":"https://github.com/snowyu/git-commiters.js/security/advisories/GHSA-g38c-wxjf-xrh6","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/snowyu/git-commiters.js/commit/7f0abfedbf506e3a61ac875d91324a8dbe756e84","tags":["x_refsource_MISC"]}],"priority":{"score":24.3,"factors":[{"name":"EPSS percentile","points":18.23},{"name":"CVSS severity","points":6.09}]},"vendorSlug":"snowyu","affectedVersions":[{"vendor":"snowyu","product":"git-commiters.js","versions":["< 0.1.2"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2025-09-25T14:42:06.964855Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"git-commiters","vulnerableRanges":["<0.1.2"],"patched":["0.1.2"],"from":["GHSA-g38c-wxjf-xrh6"],"provenance":"source"}],"summary":{"text":"The git-commiters.js Node.js module from snowyu, which reports committer statistics for git repositories, contains a command injection flaw in its exported gitCommiters(options, callback) API, where user-supplied options such as cwd and revisionRange are concatenated into executed commands without sanitisation or safe argument separation. An attacker able to supply crafted option values, with user interaction required to trigger it and no authentication or privileges needed over the network, could inject arbitrary OS commands that run with the privileges of the application process.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T15:03:05Z"},"euvd":{"id":"EUVD-2025-30824","exploited":false,"provenance":"source"}}