Skip to main content
Vulnerability Database/CVE-2025-59433

CVE-2025-59433: Conventional Changelog RCE Vulnerability

CVE-2025-59433 is an argument injection flaw in Conventional Changelog that enables remote code execution through the getTags API. This post explains the technical details, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2025-59433 Overview

CVE-2025-59433 is an argument injection vulnerability in @conventional-changelog/git-client, a library used by Conventional Changelog to generate changelogs and release notes from Git commit messages. The flaw affects all versions prior to 2.0.0 and resides in the getTags() API, which forwards user-supplied parameters to the git log command without validation or the POSIX end-of-options separator (--). An attacker who can influence these parameters can abuse Git's --output= flag to overwrite arbitrary files on the host running the tool. The issue is tracked under [CWE-88: Argument Injection].

Critical Impact

Argument injection into git log allows overwriting arbitrary files on the filesystem, potentially corrupting build artifacts, configuration files, or CI/CD assets during release automation.

Affected Products

  • @conventional-changelog/git-client versions prior to 2.0.0
  • conventional-recommended-bump package consuming the vulnerable git-client API
  • Downstream Conventional Changelog tooling that exposes the Params type to CLI input

Discovery Timeline

  • 2025-09-22 - CVE-2025-59433 published to NVD
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2025-59433

Vulnerability Analysis

The @conventional-changelog/git-client library exposes the getTags() API to enumerate Git tags. This API accepts additional parameters that are appended directly to the underlying git log invocation. Unlike the sibling getRawCommits() API, which terminates the option list with -- before appending user-controlled paths, getTags() performs no sanitization, no allow-list validation, and no option-list termination.

Because Git treats any argument beginning with -- as an option, an attacker who controls a parameter passed to getTags() can inject flags such as --output=/path/to/file. Git will then write log output to the specified path, overwriting arbitrary files that the executing process can access. Exploitation requires local privilege to influence the tool's parameters and user interaction to trigger changelog generation, which limits practical exposure primarily to CI/CD pipelines and release-automation scripts.

Root Cause

The root cause is missing input validation and missing use of the POSIX -- end-of-options marker when constructing the git log command line. The library propagates arbitrary Params objects into child-process arguments, letting caller-supplied strings be interpreted as Git CLI options rather than positional values.

Attack Vector

An attacker requires the ability to influence parameters supplied to getTags(), for example by controlling CLI arguments to conventional-recommended-bump or a wrapper script inside a repository. When the tool runs, the injected --output= flag causes Git to overwrite the targeted file with log content.

typescript
// Security patch — removal of the untrusted `Params` type from public APIs
// Source: https://github.com/conventional-changelog/conventional-changelog/commit/d95c9ffac05af58228bd89fa0ba37ad65741c6a2

 import type { ParserStreamOptions } from 'conventional-commits-parser'
-import type { GetCommitsParams, GetSemverTagsParams, Params } from '@conventional-changelog/git-client'
+import type { GetCommitsParams, GetSemverTagsParams } from '@conventional-changelog/git-client'
 import { packagePrefix } from '@conventional-changelog/git-client'

 function trim(str: string) {
   return str.trim()
 }

-export function parseTagsOptions(options: Record<string, unknown>): GetSemverTagsParams & Params | null {
-  const result: GetSemverTagsParams & Params = {}
+export function parseTagsOptions(options: Record<string, unknown>): GetSemverTagsParams | null {
+  const result: GetSemverTagsParams = {}

   if (typeof options.tagPrefix === 'string') {
     result.prefix = options.tagPrefix

The patch removes the Params type from the public option surface, preventing callers from forwarding arbitrary flags into git log.

Stop Remote Code Execution Before It Runs

Singularity™ Endpoint detects and blocks exploit attempts at machine speed, including zero-days and novel attack techniques.

Stop Exploit Attempts

Detection Methods for CVE-2025-59433

Indicators of Compromise

  • Unexpected files created or overwritten during changelog or release-bump steps in CI logs
  • Presence of --output= or other unusual -- prefixed strings in arguments passed to conventional-recommended-bump or related tools
  • git log processes spawned with argument lists that contain caller-controlled option flags after tag or prefix parameters

Detection Strategies

  • Inspect package-lock.json and yarn.lock for @conventional-changelog/git-client versions below 2.0.0 and flag builds that resolve to vulnerable ranges.
  • Instrument CI runners to record full argv for git child processes and alert on option flags appearing after positional tag inputs.
  • Review Git repositories for suspicious release-automation configuration files that pass user-controlled strings to getTags() or parseTagsOptions().

Monitoring Recommendations

  • Enable filesystem auditing on CI workers to detect writes to unexpected paths during changelog generation jobs.
  • Alert on Node.js processes spawning git with argument patterns matching --output=, --upload-pack=, or other file-writing Git flags.
  • Continuously scan software bill of materials (SBOM) outputs for vulnerable versions of @conventional-changelog/git-client.

How to Mitigate CVE-2025-59433

Immediate Actions Required

  • Upgrade @conventional-changelog/git-client to version 2.0.0 or later across all projects and CI images.
  • Audit build pipelines for any wrapper scripts that forward untrusted input to conventional-recommended-bump or related CLIs.
  • Rotate credentials or artifacts stored on CI runners if logs indicate unexpected file writes during release jobs.

Patch Information

The vulnerability is fixed in @conventional-changelog/git-client version 2.0.0. The upstream fix, commit d95c9ffac05af58228bd89fa0ba37ad65741c6a2, removes the exported Params type so that arbitrary Git flags can no longer be forwarded through the public API. See the GitHub Security Advisory GHSA-vh25-5764-9wcr and the upstream patch commit for full details.

Workarounds

  • Restrict tagPrefix and other option values passed to Conventional Changelog tooling to a static allow list defined in repository configuration.
  • Run release automation under a least-privilege service account that cannot overwrite sensitive files on the CI host.
  • Isolate changelog and version-bump steps inside ephemeral containers to limit the blast radius of arbitrary file writes.
bash
# Upgrade the vulnerable dependency to the patched release
npm install @conventional-changelog/git-client@^2.0.0

# Verify the resolved version
npm ls @conventional-changelog/git-client

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.