[Security] Fix HIGH vulnerability: javascript.lang.security.detect-child-process.detect-child-process#15306
Merged
pelikhan merged 1 commit intogithub:mainfrom Feb 13, 2026
Conversation
…-process.detect-child-process Automatically generated security fix
pelikhan
approved these changes
Feb 13, 2026
This was referenced Feb 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Security Fix
This PR addresses a HIGH severity vulnerability detected by our security scanner.
Security Impact Assessment
ownerargument to be user-controllable, such as from untrusted inputs in workflow triggers or PRs; while this repository's setup scripts are likely used in controlled GitHub environments, collaborative or open-source usage increases the attack surface for motivated attackers with moderate skill.ownerinput before passing it to child_process, such as using allowlists or escaping, requiring minimal code changes without affecting dependencies or risking breaking changes in this setup script.Evidence: Proof-of-Concept Exploitation Demo
This demonstration shows how the vulnerability could be exploited to help you understand its severity and prioritize remediation.
How This Vulnerability Can Be Exploited
The vulnerability in
actions/setup/js/merge_remote_agent_github_folder.cjsstems from unsanitized use of theownerparameter in achild_processcall, likely for operations like cloning or merging from a GitHub repository (e.g.,git clone https://github.com/${owner}/repo). Ifowneris controllable by user input—such as workflow inputs, environment variables, or pull request data—an attacker can inject shell commands, leading to arbitrary code execution within the GitHub Actions runner environment. In this repository's context, which appears to be a GitHub Actions setup utility (gh-aw), exploitation could occur via malicious workflow triggers or manipulated inputs in dependent workflows.The vulnerability in
actions/setup/js/merge_remote_agent_github_folder.cjsstems from unsanitized use of theownerparameter in achild_processcall, likely for operations like cloning or merging from a GitHub repository (e.g.,git clone https://github.com/${owner}/repo). Ifowneris controllable by user input—such as workflow inputs, environment variables, or pull request data—an attacker can inject shell commands, leading to arbitrary code execution within the GitHub Actions runner environment. In this repository's context, which appears to be a GitHub Actions setup utility (gh-aw), exploitation could occur via malicious workflow triggers or manipulated inputs in dependent workflows.Exploitation Impact Assessment
Vulnerability Details
javascript.lang.security.detect-child-process.detect-child-processactions/setup/js/merge_remote_agent_github_folder.cjsowner. This could lead to a command injection if the input is user controllable. Try to avoid calls to child_process, and if it is needed ensure user input is correctly sanitized or sandboxed.Changes Made
This automated fix addresses the vulnerability by applying security best practices.
Files Modified
actions/setup/js/merge_remote_agent_github_folder.cjsVerification
This fix has been automatically verified through:
🤖 This PR was automatically generated.