OpenCost Vulnerability Exposes Helm Values to Redirect Attacks
A security vulnerability, identified as CVE-2026-67349, has been discovered in OpenCost, a popular Kubernetes cost monitoring tool. The flaw, classified as problematic, resides in an unauthenticated Helm Values Endpoint within OpenCost versions prior to 1.121.0. This endpoint, when accessed, exposes base64-decoded `HELM_VALUES` environment variables, which can contain sensitive cloud provider credentials. Additionally, the `adminAuthMiddleware` in affected versions fails open when the `ADMIN_TOKEN` is unset, allowing unauthenticated attackers to modify GCP service account keys via the `/serviceKey` endpoint to redirect billing calls. The vulnerability was reserved as a CVE on July 29, 2026, and publicly disclosed on July 30, 2026.
This vulnerability is highly significant for any organization utilizing OpenCost, and by extension, any Kubernetes environment that relies on Helm for application deployment and configuration management. The exposure of `HELM_VALUES` containing cloud provider credentials represents a direct path to potential cloud environment compromise, enabling attackers to gain unauthorized access to cloud resources, manipulate billing, or exfiltrate data. The ability for unauthenticated attackers to trigger redirects further amplifies the risk, potentially leading to phishing attacks or service disruption. This directly impacts DevOps teams, cloud security engineers, and anyone responsible for the integrity and security of Kubernetes deployments and their associated cloud infrastructure.
This incident fits into a broader, well-established trend of supply chain security concerns within cloud-native ecosystems. As applications become increasingly modular and rely on a complex web of open-source components and configuration tools like Helm, the attack surface expands. Vulnerabilities in one component, such as OpenCost, can have cascading effects, compromising the security of the entire deployment. This highlights the critical need for robust security practices around configuration as code, secret management, and the validation of inputs, especially when these configurations are managed by tools like Helm. The principle of least privilege and strict authentication for configuration endpoints are fundamental to mitigating such risks, echoing similar concerns seen in other Kubernetes-related security advisories over the past few years.
In practice, all OpenCost users must prioritize upgrading to version 1.121.0 immediately to patch this vulnerability. Beyond this immediate action, practitioners should conduct a thorough audit of their Helm charts and any applications that consume Helm-managed values, particularly those containing sensitive information like cloud credentials. This includes reviewing how `HELM_VALUES` are handled, ensuring that sensitive data is not inadvertently exposed through unauthenticated endpoints or insecure configurations. Implementing strong authentication and authorization for all configuration-related APIs is crucial. Furthermore, organizations should consider adopting automated security scanning tools for Helm charts and their dependencies, integrating them into CI/CD pipelines to detect similar vulnerabilities proactively. Regular security audits and penetration testing of Kubernetes applications and their underlying infrastructure are also essential to identify and remediate potential weaknesses before they can be exploited.
Read original source