Skip to content

harden: using variable interpolation `${{ in action.yml... - #94

Merged
renezander030 merged 1 commit into
renezander030:masterfrom
anupamme:fix-repo-capcut-cli-shell-injection-action-yml
Aug 23, 2026
Merged

harden: using variable interpolation `${{ in action.yml...#94
renezander030 merged 1 commit into
renezander030:masterfrom
anupamme:fix-repo-capcut-cli-shell-injection-action-yml

Conversation

@anupamme

Copy link
Copy Markdown
Contributor

Summary

Harden input handling in action.yml (flagged by semgrep).

Vulnerability

Field Value
ID yaml.github-actions.security.run-shell-injection.run-shell-injection
Severity HIGH
Scanner semgrep
Rule yaml.github-actions.security.run-shell-injection.run-shell-injection
File action.yml:26
Assessment Defensive hardening

Description: Using variable interpolation ${{...}} with github context data in a run: step could allow an attacker to inject their own code into the runner. This would allow them to steal secrets and code. github context data can have arbitrary user input and should be treated as untrusted. Instead, use an intermediate environment variable with env: to store the data and use the environment variable in the run: script. Be sure to use double-quotes the environment variable, like this: "$ENVVAR".

Threat Model Context

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

Changes

  • action.yml

Behavior Preservation

The change is scoped to 1 file on the vulnerable path; it only tightens handling of untrusted input and leaves valid inputs unaffected.


This patch removes an exploit primitive — a code pattern that, while not independently exploitable today, could be chained with other weaknesses by automated exploit-development tooling. Proactive removal of such primitives raises the bar against increasingly capable automated attack tools.


Automated security fix by OrbisAI Security

…tion security vulnerability

Automated security fix generated by OrbisAI Security
@renezander030
renezander030 enabled auto-merge (squash) August 23, 2026 05:06
@renezander030
renezander030 merged commit 567a19c into renezander030:master Aug 23, 2026
7 checks passed
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.

2 participants