Vulnerability · Published Aug 21, 2026 · Assigned by GitHub_M

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

Medium 5.9

In plain English

A medium-severity security flaw in infracost from infracost. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 43% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)5.9Medium
Exploit odds (30 days)0.5%top 56.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

Infracost provides cloud cost intelligence for engineers, AI coding agents, and CI/CD. Prior to 0.10.45, internal/hcl/remote_variables_loader.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 pull_request_target or a same-repository pull request, an attacker can direct the request to an attacker-controlled host and disclose the token. Standard fork pull_request workflows without secrets are not exposed. This issue is fixed in version 0.10.45.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Gogithub.com/infracost/infracost0.10.45GHSA-6x6c-w9w9-hv4h
Gogithub.com/infracost/infracost0.10.45GO-2026-6437

Affected products (as reported)

VendorProductVersions
infracost infracost < 0.10.45

Weakness: CWE-522 · Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

References