Skip to main content
Menu
Advisories

Data App synchronization could resolve paths outside the selected directory

GHSA-383W-VVPP-V638Published Updated GitHub

Description

The CLI followed filesystem links during some Data App sync operations without checking that the resolved file remained in the selected directory. The patch uses the same containment check across reads and writes. Existing links whose targets are inside the directory remain supported.

Fix: github.com/lightdash/lightdash/pull/32497

Affected package: npm @lightdash/cli. The affected range is >= 0.3276.0, < 3.351.5. The lower bound is based on the introduction of Data App file synchronization in #24939. Version 3.351.4 does not contain the fix; 3.351.5 is the first stable release that does.

Upgrade: Update @lightdash/cli to 3.351.5 or later on developer machines and CI runners that synchronize Data Apps. Keep newer fixed versions; no downgrade is needed. Verify the executable used by each environment with lightdash --version. Updating the Cloud server does not update installed CLI copies.

Workaround: If you cannot upgrade immediately, avoid Data App file synchronization with the affected CLI until it is updated.

Fixed release: github.com/lightdash/lightdash/releases/tag/3.351.5 Published npm package: npmjs.com/package/@lightdash/cli/v/3.351.5 CLI tarball: registry.npmjs.org/@lightdash/cli/-/cli-3.351.5.tgz Tarball integrity: sha512-RRWKdogPFZDOXkTlJ1HL5amRlTExVohsUe7572njpDxVts6TVozNgll4n6niL1rmz5apCYxrZPNBVlQxloeGmw==

Affected versions

References

GitHub · lightdash/lightdash