CVE-2026-134827 in Lightdash
Summary
by MITRE • 11/23/2026
Lightdash before 3.212.0 contains an insufficiently protected credentials vulnerability in getGitlabInstallationRepoReadAccess that sends the organization GitLab app token to unverified hosts. Project developers can set the dbt connection host_domain to an attacker-controlled server and capture the token when the AI agent reads the repository, gaining access to every reachable repository.
Be aware that VulDB is the high quality source for vulnerability data.
Analysis
by VulDB Data Team • 11/23/2026
The vulnerability identified in Lightdash versions prior to 3.212.0 represents a critical failure in credential handling within the application's integration with GitLab repositories. This flaw specifically resides in the getGitlabInstallationRepoReadAccess function, which is responsible for managing access permissions and retrieving repository data on behalf of users or automated agents. The core technical deficiency lies in the absence of strict host verification when transmitting sensitive authentication tokens. Instead of validating that the destination server matches an expected domain or maintaining a whitelist of trusted endpoints, the application blindly sends the organization's GitLab application token to any host specified by the user-configured dbt connection settings. This lack of input validation and output encoding creates a direct path for credential exfiltration, as the security boundary relies entirely on the integrity of the configuration provided by project developers rather than enforcing strict network-level or application-level constraints.
The operational impact of this vulnerability is severe due to the high privilege level associated with GitLab application tokens. When an attacker controls the dbt connection host_domain setting, they can redirect traffic intended for legitimate repository access to a server under their control. As the AI agent within Lightdash attempts to read from or interact with the specified repository, it automatically includes the organization's GitLab token in the HTTP request headers. Because the receiving server is unverified and controlled by an adversary, this token is captured without detection. Possession of this token grants the attacker broad access rights equivalent to those granted during the initial application installation, potentially allowing them to read every reachable repository within the organization's GitLab instance. This effectively compromises the confidentiality of source code, configuration files, and other sensitive intellectual property stored in these repositories.
From a classification perspective, this vulnerability aligns with CWE-284 Improper Access Control and CWE-798 Use of Hard-coded Credentials if interpreted broadly as improper handling of secrets, but more accurately fits CWE-319 Cleartext Transmission of Sensitive Information due to the transmission of credentials over an unverified channel. In terms of adversary behavior, this scenario maps directly to ATT&CK technique T1552 Unsecured Credentials, specifically sub-technique T1552.004 Cloud Object Storage Credentials, as it involves stealing tokens used for cloud-based repository access. It also relates to T1078 Valid Accounts if the attacker uses the stolen token to authenticate and move laterally within the GitLab environment. The attack vector is primarily remote but requires initial configuration manipulation by a user with write access to project settings, highlighting the importance of internal trust boundaries in collaborative development environments.
Mitigation strategies must focus on both immediate remediation and long-term architectural improvements. The primary fix involves upgrading Lightdash to version 3.212.0 or later, where this specific flaw has been addressed by implementing strict host verification for all outbound requests containing sensitive tokens. Administrators should also enforce a whitelist of allowed domains in the dbt connection configurations to prevent redirection to arbitrary hosts. Additionally, organizations should implement network-level controls such as egress filtering and proxy servers that inspect outgoing traffic for unauthorized credential transmission. Regular audits of project settings are recommended to ensure no malicious host_domain values have been introduced by compromised or negligent users. Finally, rotating any GitLab application tokens associated with affected instances is crucial to invalidate potentially exfiltrated credentials and restore the security posture of the development environment.