CVE-2025-59831
JavaScript vulnerability analysis and mitigation

Overview

CVE-2025-59831 affects the git-commiters Node.js module, which provides functionality for retrieving committer statistics from git repositories. The vulnerability was discovered and disclosed on September 25, 2025, affecting versions prior to 0.1.2. This command injection vulnerability exists in the module's primary exported API: gitCommiters(options, callback) (GitHub Advisory).

Technical details

The vulnerability stems from improper input sanitization in the gitCommiters function when handling the revisionRange parameter. The function fails to properly sanitize user input and doesn't implement secure process execution API to separate commands from their arguments, leading to command injection possibilities. The vulnerability has been assigned a CVSS v4.0 score of 8.7 (HIGH) with the vector string 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. It is classified under CWE-78 (Improper Neutralization of Special Elements used in an OS Command) and CWE-77 (Improper Neutralization of Special Elements used in a Command) (NVD).

Impact

When exploited, this vulnerability allows attackers to execute arbitrary commands through the revisionRange parameter. The impact is particularly concerning as the git commiters functionality continues to work as expected even after command injection, making it difficult to detect in running applications (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in version 0.1.2 of the git-commiters package. The fix includes proper input sanitization by removing quotes from the revisionRange parameter and adding proper string escaping (GitHub Commit). Users should upgrade to version 0.1.2 or later to mitigate this vulnerability.

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-67731HIGH8.7
  • JavaScriptJavaScript
  • servify-express
NoYesDec 12, 2025
CVE-2025-67718HIGH8.7
  • JavaScriptJavaScript
  • formio
NoYesDec 11, 2025
CVE-2025-65513HIGH7.5
  • JavaScriptJavaScript
  • mcp-fetch-server
NoNoDec 09, 2025
CVE-2025-67716MEDIUM5.7
  • JavaScriptJavaScript
  • @auth0/nextjs-auth0
NoYesDec 11, 2025
CVE-2025-67490MEDIUM5.4
  • JavaScriptJavaScript
  • @auth0/nextjs-auth0
NoYesDec 10, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management