The Infracost path traversal vulnerability (CVE-2026-71493) is formally a symlink resolution bug in template functions—readFile, pathExists, isDir, and matchPaths all validated only the final target via os.Lstat, not the full traversal chain. That's the technical mechanism, and version 0.10.45 patches it. But treating this as a straightforward file-read bug badly misjudges the real exposure.
Infracost doesn't just read files—it pipes that content through a template engine and renders it into dashboards, PR comments, and configuration outputs. A file read from /run/secrets or a CI environment file doesn't stay isolated. It becomes a structured artifact that downstream systems treat as trusted cost reporting, with all the logging, caching, and retention that implies. That's the actual attack surface: arbitrary file content laundered through a trusted reporting channel.
The CVSS 5.9 compounds this miscalculation. It measures the direct file read—low confidentiality impact, no availability or integrity effects—but ignores what happens after. The rendered output persists, propagates, and inherits the trust context of the reporting layer. In CI/CD environments where deployment credentials and API keys are routinely present, the read target isn't theoretical.
The AI coding agent angle is the escalation that makes this urgent. Infracost explicitly targets AI agents and automated pipelines. When LLM-generated templates invoke readFile on paths like /run/secrets or CI environment files, there's no human review gate—only the assumption that the template engine is safe because it's "just cost reporting." The tool's purpose creates a cognitive blind spot: users configure cost analysis without realizing they're building file-operation pipelines.
The patch to 0.10.45 likely closes the known entry points. Whether it closes the class is unknown—the same insufficient validation pattern existed across four functions, suggesting structural blind spots elsewhere in the module. Audit your Infracost templates for any readFile usage, treat Infracost outputs as potentially untrusted, and apply extra scrutiny to AI-generated templates that touch the filesystem.