CVE-2026-71494: Infracost: Terraform Cloud and registry token disclosure via unvalidated hostname

Published Aug 21, 2026
·
Updated

Infracost provides cloud cost intelligence for engineers, AI coding agents, and CI/CD. Prior to 0.10.45, internal/hcl/remotevariablesloader.go and related Terraform Cloud, remote-plan, and Terragrunt registry request paths can attach a configured Terraform Cloud or registry token to a destination hostname derived from untrusted Terraform input without confirming that it is the configured trusted host. When a CI run provides a token while scanning attacker-controlled Terraform, including pullrequesttarget or a same-repository pull request, an attacker can direct the request to an attacker-controlled host and disclose the token. Standard fork pullrequest workflows without secrets are not exposed. This issue is fixed in version 0.10.45.

Affected Software

1 affected component
Infracost<0.10.45

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Infracost to a version that resolves this vulnerability.

    Fixed in 0.10.45

Event History

Aug 21, 2026
CVE Published
via MITRE·05:50 PM
Data Sourced
via MITRE·05:50 PM
DescriptionWeakness

Frequently Asked Questions

1

Which CI workflows are realistically exposed?

CI runs that provide a Terraform Cloud or registry token while scanning attacker-controlled Terraform are exposed. This includes pull_request_target workflows and same-repository pull requests; standard fork pull_request workflows without secrets are not exposed.

2

What must an attacker control to disclose a token?

The attacker needs to supply Terraform input that influences a destination hostname used by the affected Terraform Cloud, remote-plan, Terragrunt registry, or related request paths. The CI run must also make a configured Terraform Cloud or registry token available to Infracost.

3

How can this be remediated?

Upgrade Infracost to version 0.10.45, which fixes the hostname validation issue. If upgrading cannot happen immediately, avoid providing Terraform Cloud or registry tokens to runs that scan attacker-controlled Terraform, particularly pull_request_target and same-repository pull request workflows.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203