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

High 8.7 Published Updated
Exploited in the wild
Not known
Fix
Available

What is CVE-2025-59831?

CVE-2025-59831 is a high-severity vulnerability in snowyu git-commiters.js, published on 25 Sep 2025.

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

Weakness: CWE-78, CWE-77

Which versions are affected by CVE-2025-59831?

2 open source packages ship an affected version, including git-commiters. It affects 1 product.

PackageAffectedFixed in
git-commiters npmAll versions0.1.2
git-commiters npmAll versions0.1.2

Products include Riceball Git-Commiters.

How do I fix CVE-2025-59831?

Upgrade git-commiters to 0.1.2 or later.

Is CVE-2025-59831 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-59831 exists.

Sources

Also known as GHSA-g38c-wxjf-xrh6.

Is CVE-2025-59831 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free