Skip to content

Command contains $() command substitution -- security eyebrow raised #479

Closed

Description

@aml25

Oftentimes using the various skills in Claude Code, I get prompted to confirm proceeding because of a Command contains $() command substitution.

I don't know if it's possible to architect some of the tools in way that avoids this, but if so I think it'd be best practice to do so. This practice raises an eyebrow for sure and opens up potential for attackers in forked repos pretending to be a trusted party.

Upon investigation (because I wasn't already familiar with shell command substitution), this summarizes my concern best:

Command substitution is risky because the inner command runs with full system privileges before you ever see the final command — so if that inner command produces unexpected or malicious output, it gets silently executed as part of something you thought you were approving.

Activity

  1. garrytan commented on Apr 13, 2026

    @garrytan
    Owner

    Fixed in commit 8e476be1. Replaced eval $(gstack-slug) with safer source <(...) syntax.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions