/

CVE-2026-134827

Severity:

HIGH RISK

(7.7)

Insufficient Credential Protection (CWE-522) in Lightdash

CVE-2026-134827

Deferred

Vulnerability type

Category:

Credential Exposure

CWE:

CWE-522

Impact:

Exposure and potential misuse of GitLab app credentials

Severity:

HIGH RISK

(7.7)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

Lightdash can send an organization's GitLab app token to a host that has not been verified when its AI agent reads a repository. A project developer who can set the dbt connection host_domain to an attacker-controlled server may capture the token and use it to access reachable repositories.

Affected context

The issue concerns Lightdash's GitLab repository-read access flow. It becomes risky when a project developer can configure the dbt connection's host_domain and the AI agent subsequently reads the repository, causing the organization's GitLab app token to be sent to a host that has not been verified.

Exploit preconditions

  • Attack surface: GitLab repository access initiated by Lightdash's AI agent
  • Required access: Ability to set or influence a project's dbt connection host_domain
  • Trigger point: The AI agent reads the repository using the configured host
  • Why exploitation is possible: The credential is sent without adequately verifying that the destination host is trusted

Why this happens

The GitLab access flow does not sufficiently protect credentials when selecting the destination for a repository request. Sending an organization app token to an unverified host can disclose that secret to an attacker-controlled endpoint. This maps to CWE-522: Insufficiently Protected Credentials.

Potential impact

  • An attacker may capture the organization's GitLab app token.
  • The captured token could allow access to repositories reachable with that credential.
  • Exposed repository contents could increase the risk of further compromise or disclosure.

General mitigation guidance

Defensive patterns focus on ensuring credentials are only sent to trusted destinations and limiting the harm if a credential is exposed.

  • Bind repository access to verified, explicitly allowed GitLab hosts.
  • Avoid deriving credential destinations from project-controlled connection values.
  • Keep tokens scoped to the minimum repositories and permissions needed.
  • Store and handle credentials through protected secret-management mechanisms, and avoid exposing them to untrusted project configuration.
  • Consider controls for detecting and responding to unexpected credential use.

How teams detect issues like this

  • Review code paths that attach GitLab tokens to requests and verify how destination hosts are selected and validated.
  • Use static analysis or code review checks to flag secrets sent to URLs influenced by project-controlled configuration.
  • Apply policy checks that restrict repository integrations to approved hostnames.
  • Monitor for GitLab token use from unexpected hosts or access patterns.

Sources

SourceLink
github.comgithub.com/lightdash/lightdash/blob/3.211.0/packages/backend/src/ee/services/AiWritebackService/AiWritebackService.ts#L1165-L1201
github.comgithub.com/lightdash/lightdash/commit/e207ceb480e394c7ce50f676057bf4a2807588e6
github.comgithub.com/lightdash/lightdash/pull/32389
github.comgithub.com/lightdash/lightdash/releases/tag/3.212.0
vulncheck.comvulncheck.com/advisories/lightdash-before-3.212.0-credential-exposure-via-ai-writeback-gitlab-read-access

Frequently asked

questions

A project developer who can set the dbt connection host_domain may be able to influence where the token is sent, if the AI agent later reads the repository.

The described scenario requires the ability to configure the project's connection and cause or wait for the AI agent to read the repository. The description does not establish that an unauthenticated external user can trigger it.

Verify and allowlist the destination host before attaching credentials, and do not let project-controlled host values determine where organization tokens are sent.

Keep secrets out of untrusted configuration flows, use least-privilege tokens, and review outbound requests for destinations influenced by user-controlled values.

Find out what's already
exploitable in your codebase.