Skip to content

fix: the bump-version in bump-version.ts - #67

Open
anupamme wants to merge 1 commit into
platformatic:mainfrom
anupamme:fix-repo-vfs-bump-version-command-injection
Open

fix: the bump-version in bump-version.ts#67
anupamme wants to merge 1 commit into
platformatic:mainfrom
anupamme:fix-repo-vfs-bump-version-command-injection

Conversation

@anupamme

@anupamme anupamme commented Sep 7, 2026

Copy link
Copy Markdown

Summary

Fix critical severity security issue in scripts/bump-version.ts.

Vulnerability

Field Value
ID V-001
Severity CRITICAL
Scanner multi_agent_ai
Rule V-001
File scripts/bump-version.ts:10
Assessment Likely exploitable

Description: The bump-version.ts script uses execSync() to execute shell commands with user-controlled input. The username from process.argv[3] or process.env.GITHUB_ACTOR is used to look up user information, which is then interpolated directly into shell commands via template literals. If an attacker controls GITHUB_ACTOR environment variable or process.argv[3], they can inject arbitrary shell commands through the userInfo values that get interpolated into git config and git commit commands.

Evidence

Exploitation scenario: An attacker who can set the GITHUB_ACTOR environment variable (e.g., through CI/CD pipeline configuration, compromised environment, or fork-based pull request attacks) sets it to a malicious value.

Scanner confirmation: multi_agent_ai rule V-001 flagged this pattern.

Threat Model Context

This is a Node.js library - vulnerabilities affect downstream consumers who use this package.

Changes

  • scripts/bump-version.ts

Behavior Preservation

The change is scoped to 1 file on the vulnerable path.


Automated security fix by OrbisAI Security

Automated security fix generated by OrbisAI Security
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant