Vulnerabilities in pkg:npm/@lightdash/cli

PACKAGE
Advisory Summary

GHSA-3hfp-gqgh-xc5g is a CRITICAL (CVSS 9.6) axios supply chain attack - vulnerability (CWE-1395: Dependency on Vulnerable Third-Party Component) affecting @lightdash/cli libraries in the npm ecosystem. The issue involves axios supply chain attack - dependency in @lightdash/cli may resolve to compromised axios versions. Remediation is available by upgrading affected packages to version 0.2695.1.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/@lightdash/cli

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/@lightdash/cli. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-3hfp-gqgh-xc5g - CRITICAL Axios supply chain attack - dependency in @lightdash/cli may resolve to compromised axios versions

GHSA-3hfp-gqgh-xc5g at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-3hfp-gqgh-xc5g
Severity CRITICAL
CVSS v3.1 Base Score 9.6
CWE Classification CWE-1395: Dependency on Vulnerable Third-Party Component
Affected Product @lightdash/cli
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 9.6

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix GHSA-3hfp-gqgh-xc5g

To remediate this vulnerability, upgrade all affected @lightdash/cli dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

@lightdash/cli fixed: 0.2695.1
npm install @lightdash/cli@0.2695.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls @lightdash/cli

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-3hfp-gqgh-xc5g, inspect your project dependencies using npm:

npm ls @lightdash/cli

Analyze the terminal output to locate any version of @lightdash/cli in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.2695.1), your application is affected.

Note: The npm ls @lightdash/cli command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-1395: Dependency on Vulnerable Third-Party Component, where the product has a dependency on a third-party component that contains one or more known vulnerabilities. In @lightdash/cli, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact A supply chain attack on the `axios` npm package (versions 1.14.1 and 0.30.4) introduced a malicious transitive dependency (`plain-crypto-js@4.2.1`) that deploys a cross-platform remote access trojan (RAT) on macOS, Windows, and Linux. The attacker compromised the primary axios maintainer's npm account to publish the malicious versions. The malicious versions were live on npm for approximately 3 hours (00:21 UTC to 03:29 UTC on March 31, 2026) before being removed. The `@lightdash/cli` package specified axios as a dependency with a semver range (`^1.12.0`) that permitted resolution to the compromised version. Any user who performed a fresh install of `@lightdash/cli` versions `>= 0.1800.0, < 0.2695.1` (without a pre-existing lockfile) during this window may have installed the malicious axios version. If compromised, the RAT establishes a connection to a command-and-control server (`sfrclak[.]com` / `142.11.206.73:8000`) and provides the attacker with shell access, file system enumeration, and the ability to execute arbitrary commands. All credentials, secrets, and tokens accessible from the affected machine should be considered compromised. Lightdash Cloud is not affected. ### Patches This has been patched in `@lightdash/cli@0.2695.1`. The fix pins axios to a known safe version (1.14.0). Users should upgrade immediately: ``` npm install -g @lightdash/cli@0.2695.1 ``` If users had installed the compromised version, they should check for RAT artifacts before and after upgrading: - macOS: `/Library/Caches/com.apple.act.mond` - Windows: `%PROGRAMDATA%\wt.exe` - Linux: `/tmp/ld.py` If any artifacts are found, assume full compromise of that machine and rotate all accessible credentials (warehouse credentials, API tokens, SSH keys, cloud provider credentials, environment variables). ### Workarounds If users cannot upgrade immediately, they can force a safe axios resolution after installing the CLI: ``` npm install -g axios@1.14.0 --force ``` Alternatively, if users are building a Docker image or using a lockfile, they should ensure their resolved axios version is not 1.14.1 or 0.30.4: ``` npm ls axios ``` Block egress traffic to `sfrclak[.]com` and `142.11.206.73` at the network level to prevent the RAT from reaching its command-and-control server. ### Resources - Upstream axios issue: https://github.com/axios/axios/issues/10604 - StepSecurity analysis: https://www.stepsecurity.io/blog/axios-compromised-on-npm-malicious-versions-drop-remote-access-trojan - Socket analysis: https://socket.dev/blog/axios-npm-package-compromised - Snyk advisory (axios): https://security.snyk.io/vuln/SNYK-JS-AXIOS-15850650 - Snyk advisory (plain-crypto-js): https://security.snyk.io/vuln/SNYK-JS-PLAINCRYPTOJS-15850652 - The Hacker News coverage: https://thehackernews.com/2026/03/axios-supply-chain-attack-pushes-cross.html

GHSA-3hfp-gqgh-xc5g Affected @lightdash/cli Versions

1 component(s)
Fixed Versions:
0.2695.1
Product / Package Ecosystem Affected Versions Fixed Version
@lightdash/cli
npm
≥ 0.1800.0
< 0.2695.1
0.2695.1

References

Frequently Asked Questions

What is GHSA-3hfp-gqgh-xc5g?
GHSA-3hfp-gqgh-xc5g is a security vulnerability in @lightdash/cli involving Axios supply chain attack - dependency in @lightdash/cli may resolve to compromised axios versions under CWE-1395: Dependency on Vulnerable Third-Party Component.
Which @lightdash/cli versions are affected?
Affected versions include releases prior to 0.2695.1 across affected packages: @lightdash/cli.
What version fixes GHSA-3hfp-gqgh-xc5g?
Upgrading to 0.2695.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @lightdash/cli affected?
Yes, @lightdash/cli is affected in releases prior to 0.2695.1. Upgrade your dependency to 0.2695.1 or later.
What is the CVSS score of GHSA-3hfp-gqgh-xc5g?
GHSA-3hfp-gqgh-xc5g has a CVSS v3.1 base score of 9.6 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H.
What CWE is associated with GHSA-3hfp-gqgh-xc5g?
GHSA-3hfp-gqgh-xc5g is classified under CWE-1395: Dependency on Vulnerable Third-Party Component (The product has a dependency on a third-party component that contains one or more known vulnerabilities.).
How can I check npm dependencies for GHSA-3hfp-gqgh-xc5g?
Run the dependency tree command: 'npm ls @lightdash/cli'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-3hfp-gqgh-xc5g",
  "modified" : "2026-04-02T18:36:10Z",
  "published" : "2026-04-02T18:36:10Z",
  "aliases" : [ ],
  "summary" : "Axios supply chain attack - dependency in @lightdash/cli may resolve to compromised axios versions",
  "details" : "### Impact\n\nA supply chain attack on the `axios` npm package (versions 1.14.1 and 0.30.4) introduced a malicious transitive dependency (`plain-crypto-js@4.2.1`) that deploys a cross-platform remote access trojan (RAT) on macOS, Windows, and Linux. The attacker compromised the primary axios maintainer's npm account to publish the malicious versions.\n\nThe malicious versions were live on npm for approximately 3 hours (00:21 UTC to 03:29 UTC on March 31, 2026) before being removed.\n\nThe `@lightdash/cli` package specified axios as a dependency with a semver range (`^1.12.0`) that permitted resolution to the compromised version. Any user who performed a fresh install of `@lightdash/cli` versions `>= 0.1800.0, < 0.2695.1` (without a pre-existing lockfile) during this window may have installed the malicious axios version.\n\nIf compromised, the RAT establishes a connection to a command-and-control server (`sfrclak[.]com` / `142.11.206.73:8000`) and provides the attacker with shell access, file system enumeration, and the ability to execute arbitrary commands. All credentials, secrets, and tokens accessible from the affected machine should be considered compromised.\n\nLightdash Cloud is not affected.\n\n### Patches\n\nThis has been patched in `@lightdash/cli@0.2695.1`. The fix pins axios to a known safe version (1.14.0).\n\nUsers should upgrade immediately:\n\n```\nnpm install -g @lightdash/cli@0.2695.1\n```\n\nIf users had installed the compromised version, they should check for RAT artifacts before and after upgrading:\n\n- macOS: `/Library/Caches/com.apple.act.mond`\n- Windows: `%PROGRAMDATA%\\wt.exe`\n- Linux: `/tmp/ld.py`\n\nIf any artifacts are found, assume full compromise of that machine and rotate all accessible credentials (warehouse credentials, API tokens, SSH keys, cloud provider credentials, environment variables).\n\n### Workarounds\n\nIf users cannot upgrade immediately, they can force a safe axios resolution after installing the CLI:\n\n```\nnpm install -g axios@1.14.0 --force\n```\n\nAlternatively, if users are building a Docker image or using a lockfile, they should ensure their resolved axios version is not 1.14.1 or 0.30.4:\n\n```\nnpm ls axios\n```\n\nBlock egress traffic to `sfrclak[.]com` and `142.11.206.73` at the network level to prevent the RAT from reaching its command-and-control server.\n\n### Resources\n\n- Upstream axios issue: https://github.com/axios/axios/issues/10604\n- StepSecurity analysis: https://www.stepsecurity.io/blog/axios-compromised-on-npm-malicious-versions-drop-remote-access-trojan\n- Socket analysis: https://socket.dev/blog/axios-npm-package-compromised\n- Snyk advisory (axios): https://security.snyk.io/vuln/SNYK-JS-AXIOS-15850650\n- Snyk advisory (plain-crypto-js): https://security.snyk.io/vuln/SNYK-JS-PLAINCRYPTOJS-15850652\n- The Hacker News coverage: https://thehackernews.com/2026/03/axios-supply-chain-attack-pushes-cross.html",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@lightdash/cli"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.1800.0"
      }, {
        "fixed" : "0.2695.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/lightdash/lightdash/security/advisories/GHSA-3hfp-gqgh-xc5g"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/axios/axios/issues/10604"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-fw8c-xr5c-95f9"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/lightdash/lightdash"
  }, {
    "type" : "WEB",
    "url" : "https://security.snyk.io/vuln/SNYK-JS-AXIOS-15850650"
  }, {
    "type" : "WEB",
    "url" : "https://security.snyk.io/vuln/SNYK-JS-PLAINCRYPTOJS-15850652"
  }, {
    "type" : "WEB",
    "url" : "https://socket.dev/blog/axios-npm-package-compromised"
  }, {
    "type" : "WEB",
    "url" : "https://thehackernews.com/2026/03/axios-supply-chain-attack-pushes-cross.html"
  }, {
    "type" : "WEB",
    "url" : "https://www.stepsecurity.io/blog/axios-compromised-on-npm-malicious-versions-drop-remote-access-trojan"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1395", "CWE-508" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-04-02T18:36:10Z",
    "nvd_published_at" : null
  }
}