CVE-2025-59433 @conventional-changelog/git-client has an Argument Injection vulnerability

Medium 5.3 Published Updated

Attackers can inject arguments into git commands via the getTags API, potentially overwriting arbitrary files using the --output option.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2025-59433?

CVE-2025-59433 is a medium-severity command injection vulnerability in conventional-changelog, published on 22 Sep 2025. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.

Official description

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.

Weakness: CWE-88

Which versions are affected by CVE-2025-59433?

2 open source packages ship an affected version, including @conventional-changelog/git-client.

PackageAffectedFixed in
@conventional-changelog/git-client npmAll versions2.0.0
@conventional-changelog/git-client npmAll versions2.0.0

How do I fix CVE-2025-59433?

Upgrade @conventional-changelog/git-client to 2.0.0 or later.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2025-59433 being exploited?

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

Sources

Also known as GHSA-vh25-5764-9wcr.

Is CVE-2025-59433 in your software?

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

Check your SBOMs for free