Skip to content

Security: $VAR/${VAR} variable expansion bypass in detectBashSubstitution and detectPowerShellSubstitution (GHSA-wpqr-6v78-jr5g) #28418

Description

@thalha-a9

Description

The shell command detection functions in packages/core/src/utils/shell-utils.ts have an incomplete check that allows certain variable expansion patterns to bypass the security gate added for GHSA-wpqr-6v78-jr5g. This affects both bash and PowerShell code paths.

Details are intentionally kept minimal as this is an active security issue. Full technical details are in PR #28403.

Fix

PR #28403 addresses this with comprehensive detection, safe-variable allowlisting, and dual-platform test coverage (120 tests passing).

Metadata

Metadata

Assignees

No one assigned

    Type

    Fields

    No fields configured for Bug.

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions