🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more
Socket
Book a DemoInstallSign in
Socket

GitHub Actions: GitHub context variable flows to dangerous sink

Severity

Critical

Short Description

A GitHub context variable (such as issue title, PR description, or comment body) flows into a dangerous sink (such as shell command execution). This is a critical security issue that could allow command injection or code execution attacks.

Suggestion

Never use GitHub context variables directly in shell commands or other dangerous operations. These values are user-controlled and must be treated as untrusted input. Use intermediate environment variables or properly escape/sanitize the values.