Intel

AIKIDO-2026-457267

@lightdash/common is vulnerable to SQL Injection

CVE-2026-61654Published Jul 27, 2026
July 27, 2026

71

CVE Score

High

SQL Injection

Are you affected? Scan for Free

TL;DR

When an explore or metric query is compiled, user-attribute values including the intrinsic email attribute and embed-JWT-supplied attributes are substituted into the warehouse SQL string. The helper that wraps these values in the warehouse quote character never escapes them, unlike the parameter path which routes equivalent values through the warehouse escapeString function. A low-privilege authenticated user or an embed viewer can supply a value containing a quote to break out of the string literal and inject SQL that runs against the warehouse under the project's credentials, bypassing row-level security and enabling cross-tenant data exfiltration. The fix escapes user-attribute and intrinsic values with the warehouse escape function and allow-lists identifier-context substitutions.

How do I fix this?

Upgrade the @lightdash/common library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and the project uses user-attribute row-level security or embedded dashboards.

Versions

0.0.1 - 0.3219.0

Fixed in 0.3219.1

Background info

@lightdash/common is vulnerable to SQL Injection in versions 0.0.1 - 0.3219.0.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea