# GHSA-383W-VVPP-V638: Data App synchronization could resolve paths outside the selected directory

- Database: GitHub
- Severity: high (stated by ghsa, no CVSS score)
- Published: 2026-11-20
- Modified: 2026-11-20

## Affected versions

- @lightdash/cli (npm): from 0.3276.0, fixed in 3.351.5

## 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: https://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: https://github.com/lightdash/lightdash/releases/tag/3.351.5
Published npm package: https://www.npmjs.com/package/@lightdash/cli/v/3.351.5
CLI tarball: https://registry.npmjs.org/@lightdash/cli/-/cli-3.351.5.tgz
Tarball integrity: `sha512-RRWKdogPFZDOXkTlJ1HL5amRlTExVohsUe7572njpDxVts6TVozNgll4n6niL1rmz5apCYxrZPNBVlQxloeGmw==`

## References

- https://github.com/lightdash/lightdash/security/advisories/GHSA-383w-vvpp-v638

Page: https://cve.now/GHSA-383W-VVPP-V638

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
