Intel

AIKIDO-2026-457267

@lightdash/common is vulnerable to SQL Injection

SQL InjectionCVE-2026-61654 Published 6 days ago

71

High Risk

This Affects:

JS@lightdash/common
0.0.1 - 0.3219.0
Fixed in 0.3219.1
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.

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.

Background info

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

How to fix this

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