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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.9
- **CVSS:** 5.9 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: Present; Privileges required: None; User interaction: Active; Confidentiality impact: High; Integrity impact: None; Availability impact: None; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.50% (percentile 36, 2026-11-26)
- **CWE:** CWE-522
- **Aliases:** GHSA-6x6c-w9w9-hv4h, GO-2026-6437
- **Published:** 2026-08-21T17:50:43.655Z
- **Modified:** 2026-10-14T19:10:00.297Z

## Who should check

- Projects that depend on Go package github.com/infracost/infracost (\< 0.10.45)
- Anyone running infracost \< 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.

## Affected and fixed versions

- Go `github.com/infracost/infracost`: affected \< 0.10.45; fixed 0.10.45 (osv)
- infracost: \< 0.10.45 (cvelist)

## Mitigation

- Upgrade github.com/infracost/infracost to 0.10.45 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-71494. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-71494.md
Affected: github.com/infracost/infracost < 0.10.45
Fixed in: 0.10.45

Steps:
1. Search this machine and project for github.com/infracost/infracost (Go), infracost: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-71494 being exploited?

There is no confirmed exploitation: CVE-2026-71494 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.50% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-71494?

Medium: CVSS 5.9 (v4.0, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2026-71494?

github.com/infracost/infracost \< 0.10.45.

### Is there a fix for CVE-2026-71494?

Yes. Fixed in 0.10.45. Upgrade github.com/infracost/infracost to 0.10.45 or later.

### How do I check if I'm affected by CVE-2026-71494?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/infracost/infracost/security/advisories/GHSA-6x6c-w9w9-hv4h>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-71494>
- patch: <https://github.com/infracost/infracost/pull/3590>
- patch: <https://github.com/infracost/infracost/commit/3d24c757f5e4e60c7259f1b89ad7ceaabcfca86f>
- other: <https://github.com/infracost/infracost/releases/tag/v0.10.45>
- other: <https://github.com/infracost/infracost>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-71494>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-6x6c-w9w9-hv4h> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2026-6437> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-71494> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-71494>
