CVE-2025-59831
JavaScript vulnerability analysis and mitigation

Overview

CVE-2025-59831 is a Command Injection vulnerability discovered in the git-commiters npm package. The vulnerability was discovered by security researcher Liran Tal and published on September 21, 2025. The vulnerability affects git-commiters versions prior to 0.1.2, with the patched version being 0.1.2 (GitHub Advisory).

Technical details

The vulnerability exists in the library's primary exported API gitCommiters(options, callback), which accepts options including cwd (current working directory) and revisionRange (revision pointer). The core issue lies in the lack of input sanitization and secure process execution API implementation, allowing uncontrolled user input to be directly concatenated into command execution. The vulnerability has been assigned a High severity rating and is categorized under CWE-77 (Improper Neutralization of Special Elements used in a Command) and CWE-78 (Improper Neutralization of Special Elements used in an OS Command) (GitHub Advisory).

Impact

When exploited, this vulnerability allows attackers to execute arbitrary system commands through the revisionRange parameter. The command injection can occur while the git-commiters functionality continues to work as expected, making it difficult to detect the exploitation in running applications (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in version 0.1.2 of git-commiters. The fix includes implementing proper input sanitization by removing quotes and adding proper string escaping for the revisionRange parameter (Git 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-59834CRITICAL9.8
  • JavaScriptJavaScript
  • adb-mcp
NoNoSep 25, 2025
CVE-2020-36851CRITICAL9.5
  • JavaScriptJavaScript
  • cors-anywhere
NoNoSep 25, 2025
CVE-2025-59936CRITICAL9.4
  • JavaScriptJavaScript
  • get-jwks
NoYesSep 27, 2025
CVE-2025-59831HIGH8.7
  • JavaScriptJavaScript
  • git-commiters
NoYesSep 25, 2025
CVE-2025-59845HIGH8.2
  • JavaScriptJavaScript
  • @apollo/explorer
NoYesSep 26, 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