{"id":"GHSA-6x6c-w9w9-hv4h","summary":"Infracost: Terraform Cloud and registry token disclosure via unvalidated hostname","details":"### Impact\n\nSensitive information exposure in the Infracost Terraform Cloud/Enterprise integration. Several code paths attached a configured secret token to a request whose host was taken straight from the scanned Terraform, with no check that the host was the trusted endpoint. \n\nThe condition that matters is whether a Terraform Cloud/Enterprise (or registry) token is present in the run: if one is, the injected hostname can disclose it. Impact therefore depends on the trigger. Under `on: pull_request` (the only configuration in Infracost's documentation) fork pull requests run without secrets, so no token is present. It only reaches token disclosure under `pull_request_target`, a same-repository pull request, or another CI setup that provides the token alongside untrusted Terraform, and exploiting an untrusted fork pull request also typically needs a maintainer to approve the workflow run. The patch scopes the token to the trusted host regardless of trigger.\n\n### Patches\n\nFixed in `v0.10.45` ([#3590](https://github.com/infracost/infracost/pull/3590)) by attaching a token only when the destination host matches the configured trusted host; otherwise Infracost refuses to send it and skips remote variable loading\n  - Installed via the official script, a package manager, or the `latest` Docker tag: upgrade to `v0.10.45` (or later) to receive the fix.\n  - Pinned to a specific version or image digest: bump to `v0.10.45`.\n\n### Workarounds\n\nNo full fix without upgrading. To limit exposure: use `on: pull_request` rather than `pull_request_target`, pin `organization`, `workspace`, and `host` in Infracost config so the `.tf` hostname is ignored, and keep Terraform Cloud and registry tokens out of runs that process untrusted pull request content.","aliases":["CVE-2026-71494","GO-2026-6437"],"modified":"2026-09-10T15:25:38.354642861Z","published":"2026-09-08T18:14:12Z","database_specific":{"cwe_ids":["CWE-522"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2026-09-08T18:14:12Z","nvd_published_at":"2026-08-21T18:16:50Z"},"references":[{"type":"WEB","url":"https://github.com/infracost/infracost/security/advisories/GHSA-6x6c-w9w9-hv4h"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-71494"},{"type":"WEB","url":"https://github.com/infracost/infracost/pull/3590"},{"type":"WEB","url":"https://github.com/infracost/infracost/commit/3d24c757f5e4e60c7259f1b89ad7ceaabcfca86f"},{"type":"PACKAGE","url":"https://github.com/infracost/infracost"},{"type":"WEB","url":"https://github.com/infracost/infracost/releases/tag/v0.10.45"}],"affected":[{"package":{"name":"github.com/infracost/infracost","ecosystem":"Go","purl":"pkg:golang/github.com/infracost/infracost"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.10.45"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-6x6c-w9w9-hv4h/GHSA-6x6c-w9w9-hv4h.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"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"}]}