Infracost, a cost-analysis tool used alongside AI coding agents and CI/CD pipelines, could be tricked into sending a configured Terraform Cloud or registry token to an attacker-controlled host. This happens because the tool derives the destination hostname from untrusted Terraform input (e.g., in a pull request) rather than validating it against the trusted host configuration. The issue is fixed in version 0.10.45.
Updated Aug 22, 2026