@lightdash/common is vulnerable to Path Traversal
75
High Risk
The dbt Cloud webhook endpoint POST /api/v1/projects/{projectUuid}/dbt-cloud/webhook has no authentication middleware and no signature validation. The attacker-supplied accountId and runId from the request body are interpolated unsanitized into a server-side dbt Cloud API URL that is called with the victim project's dbt Cloud API key in the Authorization header. Path injection through accountId (for example a ../ traversal sequence) rewrites that authenticated request to an attacker-influenced path, leaking the API key and triggering preview creation without authentication. The fix requires authentication, validates the webhook HMAC signature, and validates and encodes the path parameters.
You are affected if you are using a version that falls within the vulnerable range and the project uses a dbt Cloud connection.
@lightdash/common is vulnerable to Path Traversal in versions 0.0.1 - 0.3213.0.
Upgrade the @lightdash/common library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant