What happened
Lightdash before 3.212.0 exposes the organization GitLab app token to unverified hosts in getGitlabInstallationRepoReadAccess. A project developer can set the dbt connection host_domain to an attacker-controlled server; when the AI agent reads the repository, the token is sent to that host, giving the attacker access to every reachable repository. CVSS 7.7 (CVSS 3.1, scope changed).
Why it matters
Lightdash's AI writeback flow is an agent that reads repositories under the org's GitLab app identity. Because the token is sent to a caller-controlled host, a lower-privileged developer can steal the broader org's GitLab token — escalating from a project setting to org-wide repository access via the AI agent's automated read path.
Attack vector
Low-privileged project developer sets dbt host_domain to an attacker server; Lightdash AI writeback sends the org GitLab app token to that unverified host when the agent reads the repo.
Affected systems
Lightdash < 3.212.0
Mitigation
Upgrade to 3.212.0 (fix merged in PR #32389); validate the dbt host domain against an allowlist before sending the GitLab token.