# CVE-2025-59831: `git-comiters` Command Injection vulnerability

- Severity: High 8.7 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 4.17%, higher than 91% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-09-22T18:01:37.000Z
- Modified: 2026-10-11T20:10:00.200Z
- Also known as: GHSA-g38c-wxjf-xrh6
- Weaknesses: CWE-77, CWE-78
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- snowyu git-commiters.js: < 0.1.2
- git-commiters (npm): before 0.1.2
- riceball git-commiters: before 0.1.2

## Every score

- GitHub_M: CVSS:4.0 8.7 High `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`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 High `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`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/snowyu/git-commiters.js/security/advisories/GHSA-g38c-wxjf-xrh6> (exploit, vendor-advisory, web)
- <https://github.com/snowyu/git-commiters.js/commit/7f0abfedbf506e3a61ac875d91324a8dbe756e84> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-59831> (advisory)
- <https://github.com/snowyu/git-commiters.js> (package)

## Sources

- CVE List: [CVE-2025-59831](https://www.cve.org/CVERecord?id=CVE-2025-59831), CVE Terms of Use, modified 2025-09-25
- GitHub Advisory Database: [GHSA-g38c-wxjf-xrh6](https://github.com/advisories/GHSA-g38c-wxjf-xrh6), CC-BY-4.0, modified 2025-10-16
- NVD: [CVE-2025-59831](https://nvd.nist.gov/vuln/detail/CVE-2025-59831), Public domain, modified 2026-10-11

---

Page: https://cve.day/CVE-2025-59831 · Whole record: https://cve.day/CVE-2025-59831.json · Rebuilt by cve.day 2026-11-25T22:59:05.158Z
