Skip to content

harden: a run: step pipes the output of curl or `wg... in... - #682

Open
anupamme wants to merge 1 commit into
slackapi:mainfrom
anupamme:fix-repo-slack-github-action-gha-curl-pipe-shell-cli-action
Open

harden: a run: step pipes the output of curl or `wg... in...#682
anupamme wants to merge 1 commit into
slackapi:mainfrom
anupamme:fix-repo-slack-github-action-gha-curl-pipe-shell-cli-action

Conversation

@anupamme

@anupamme anupamme commented Sep 1, 2026

Copy link
Copy Markdown

Summary

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

Vulnerability

Field Value
ID yaml.github-actions.security.gha-curl-pipe-shell.gha-curl-pipe-shell
Severity HIGH
Scanner semgrep
Rule yaml.github-actions.security.gha-curl-pipe-shell.gha-curl-pipe-shell
File cli/action.yml:62
Assessment Defensive hardening

Description: A run: step pipes the output of curl or wget directly into a shell interpreter. This is the "curl | bash" install pattern — if the remote server is compromised or the URL is hijacked, an attacker can execute arbitrary code in your CI runner. Consider downloading the file first, verifying its checksum or signature, and then executing it.

Threat Model Context

This is a private Node.js application (not published to npm). Vulnerabilities affect this application's own runtime only.

Changes

  • cli/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

…hell security vulnerability

Automated security fix generated by OrbisAI Security
@anupamme
anupamme requested a review from a team as a code owner September 1, 2026 05:13
@changeset-bot

changeset-bot Bot commented Sep 1, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 498a396

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant