Command Injection in standard-version

standard-version Updated 02 Oct 2025

Summary

13/07/2020
MODERATE
Yes i
Moderate
Not published

GHSA-7xcx-6wjh-7xp2: Command Injection in standard-version. Affects standard-version versions < 8.0.1. Fixed in 8.0.1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Standard Version is an open-source library used for managing version numbers and generating changelogs based on the Conventional Commits specification. It provides a simple and automated way to handle versioning and release management in software projects. However, a vulnerability has been discovered in the library that allows for command injection.

Vulnerability Detail

The standardVersion function in the Standard Version library is susceptible to command injection. This means that an attacker can manipulate input data in a way that allows them to execute arbitrary commands on the system. The vulnerability arises from the library's use of user-supplied input without proper validation or sanitization. If a client of the library unknowingly passes untrusted input to the vulnerable function, it could lead to remote code execution and potentially compromise the entire system.

How To Fix

Minimum fixed version

8.0.1

This is the first release that contains the fix.

npm install standard-version@8.0.1

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If upgrading to a fixed version is not immediately feasible, a temporary workaround is to avoid using the vulnerable function or to implement additional input validation and sanitization measures. It is crucial to carefully review any user-supplied input and ensure that it is properly sanitized before passing it to the vulnerable function.

Conclusion

The command injection vulnerability in the Standard Version library can have severe consequences if left unaddressed. It is crucial for users of the library to update to a fixed version or implement appropriate mitigations to prevent potential exploitation. For further support and assistance in vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for standard-version →

Share this vulnerability

FAQ

This vulnerability can lead to remote code execution, allowing an attacker to execute arbitrary commands on the system. It poses a significant security risk as it can potentially compromise the entire system.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability. Vulert analyzes package-lock.json files to identify and alert in real-time for open-source vulnerabilities, including this command injection vulnerability in the Standard Version library.

There is no information available regarding active exploitation of this vulnerability in the wild. However, it is crucial to address the vulnerability promptly to mitigate any potential risks.

The primary mitigation for this vulnerability is to update to a fixed version of the Standard Version library. Additionally, implementing proper input validation and sanitization practices can help reduce the risk of command injection vulnerabilities.

This vulnerability was discovered and reported by GitHub Engineer Erik Krogh Kristensen. The GitHub Security Lab team identified the potential security issue and reported it to the Standard Version project maintainers.

How To Fix

Minimum fixed version

8.0.1

This is the first release that contains the fix.

npm install standard-version@8.0.1

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback