Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
9.1

CVE-2026-61706: Infracost Action runs code from pull request titles

CVE-2026-61706 · published 2 days ago
Summary

The Infracost GitHub Action used in pull requests could execute commands hidden in the PR title. An attacker who can submit a pull request could make the workflow run unwanted commands, potentially stealing secrets or altering the repository if the workflow has higher privileges. Update to version 4.2.0 or later to stop this behavior.

What to do

The CVE record does not list a fixed version. Check the vendor's site or the advisory links below - a fix may already be released.

Affected software
VendorProductAffected versions
infracost actions >= 4.0.0, < 4.2.0
Original advisory text
Infracost GitHub Action: Script injection via pull request title in infracost/actions/diff
Infracost helps see cloud cost estimates for Terraform in pull requests. From version 4.0.0 to before version 4.2.0, there is a GitHub Actions script injection vulnerability in the infracost/actions/diff action. The "Derive context" step interpolated the pull request title straight into a bash run: block. Actions expands ${{ ... }} into the script before bash runs, so a PR title containing $(...), backticks, or ; executes as code on the runner. Anyone who can open a pull request can set the title. Successful exploitation runs arbitrary commands on the Actions runner with the privileges of the workflow. Impact depends on what the workflow exposes: under on: pull_request (the only configuration in Infracost's documentation) fork pull requests run without secrets and with a read-only token, so exposure is limited. If the action is used with pull_request_target, or triggered by a same-repository pull request, the injected code gains the repository's secrets and a writable GITHUB_TOKEN, enabling secret theft and repository modification. Exploiting an untrusted fork pull request also typically requires a maintainer to approve the workflow run. This issue has been patched in version 4.2.0.
Fix within
Internet-facing 14 days
Internal At next upgrade
  • Not known to be exploited
  • Needs hands-on effort to exploit
  • Gives an attacker full control
Severity
9.1 Critical
Exploitation
<1% chance of attack within 30 days
Type
CWE-94Code Injection
Timeline
Published3 Dec 2026
Updated5 Dec 2026
First seen3 Dec 2026
Sources
CVE-2026-61706 · MITRE
Track software like this
Free during beta