Emissary GitHub Actions Workflow Shell Injection Vulnerability

Vulnerability

A critical shell injection vulnerability has been identified in Emissary, a P2P data-driven workflow engine, in versions prior to 8.39.0. The issue arises in GitHub Actions workflow files, where user-controlled inputs from 'workflow_dispatch' were directly interpolated into shell commands. This flaw allowed an attacker with repository write access to inject arbitrary shell commands, potentially leading to repository poisoning and supply chain compromises for downstream users.

Impact

Exploitation of this vulnerability allowed for arbitrary code execution within the CI/CD runner, modification of the repository via the 'contents: write' token, supply chain poisoning for downstream users, and exfiltration of credentials from the GitHub Actions environment.

Reproduction

The vulnerability can be reproduced by creating a GitHub Actions workflow that uses 'workflow_dispatch' inputs. When the workflow is triggered, any injected commands would be executed in the shell, taking advantage of the 'GITHUB_TOKEN' permissions to modify the repository or access sensitive information.

Remediation

The vulnerability has been fixed in version 8.39.0. Organizations that have forked Emissary should apply the same environment variable indirection and input validation patterns to their workflow files.

Added: Apr 7, 2026, 7:35 PM
Updated: Apr 7, 2026, 7:35 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
10.0
exploitability
3.1
remediation
7.7
relevance
5.4
threat
1.6
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.