CVE Catalog

CVE-2025-59433

MediumCVSS 5.3
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.22%

11th percentile - higher than 11% of all known CVEs

Summary

In @conventional-changelog/git-client before version 2.0.0, an argument injection vulnerability exists in the getTags() API, allowing extra parameters to be passed to the git log command. This can lead to overwriting arbitrary files via the --output= option.

Risk Assessment

An attacker could exploit the vulnerability to overwrite files on the system, potentially leading to data loss or malicious code execution.

Recommendation

Update the @conventional-changelog/git-client package to version 2.0.0 or later.

Related vulnerabilities

Original NVD description (English source)

Conventional Changelog generates changelogs and release notes from a project's commit messages and metadata. Prior to version 2.0.0, @conventional-changelog/git-client has an argument injection vulnerability. This vulnerability manifests with the library's getTags() API, which allows extra parameters to be passed to the git log command. In another API by this library, getRawCommits(), there are secure practices taken to ensure that the extra parameter path is unable to inject an argument by ending the git log command with the special shell syntax --. However, the library does not follow the same practice for getTags() as it does not attempt to sanitize for user input, validate the given params, or restrict them to an allow list. Nor does it properly pass command-line flags to the git binary using the double-dash POSIX characters (--) to communicate the end of options. Thus, allowing users to exploit an argument injection vulnerability in Git due to the --output= command-line option that results with overwriting arbitrary files. This issue has been patched in version 2.0.0.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS