Vulnerabilities in pkg:npm/@mistralai/mistralai

PACKAGE
Advisory Summary

GHSA-jgg6-4rpr-wfh7 is a LOW (CVSS 0.0) broken dropper vulnerability (CWE-506: Embedded Malicious Code) affecting @mistralai/mistralai libraries in the npm ecosystem. The issue involves broken dropper in @mistralai/mistralai, @mistralai/mistralai-azure, @mistralai/mistralai-gcp. Remediation is available in the latest vendor maintenance releases.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/@mistralai/mistralai

1 Known Advisory Record(s)

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

Advisory ID CVE / NVD Severity Summary
GHSA-jgg6-4rpr-wfh7 - LOW Broken dropper in @mistralai/mistralai, @mistralai/mistralai-azure, @mistralai/mistralai-gcp

GHSA-jgg6-4rpr-wfh7 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-jgg6-4rpr-wfh7
Severity LOW
CVSS v3.1 Base Score 0.0
CWE Classification CWE-506: Embedded Malicious Code
Affected Product @mistralai/mistralai
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 0.0

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:U/C:N/I:N/A:N).

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

How to Fix GHSA-jgg6-4rpr-wfh7

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

@mistralai/mistralai fixed: Latest secure release
npm install @mistralai/mistralai@Latest secure release
@mistralai/mistralai-azure fixed: Latest secure release
npm install @mistralai/mistralai-azure@Latest secure release
@mistralai/mistralai-gcp fixed: Latest secure release
npm install @mistralai/mistralai-gcp@Latest secure release
@mistralai/mistralai fixed: Latest secure release
npm install @mistralai/mistralai@Latest secure release
@mistralai/mistralai fixed: Latest secure release
npm install @mistralai/mistralai@Latest secure release
@mistralai/mistralai-azure fixed: Latest secure release
npm install @mistralai/mistralai-azure@Latest secure release
@mistralai/mistralai-azure fixed: Latest secure release
npm install @mistralai/mistralai-azure@Latest secure release
@mistralai/mistralai-gcp fixed: Latest secure release
npm install @mistralai/mistralai-gcp@Latest secure release
@mistralai/mistralai-gcp fixed: Latest secure release
npm install @mistralai/mistralai-gcp@Latest secure release
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 @mistralai/mistralai

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-jgg6-4rpr-wfh7, inspect your project dependencies using npm:

npm ls @mistralai/mistralai

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

Note: The npm ls @mistralai/mistralai 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-506: Embedded Malicious Code, where the product contains code that appears to be malicious in nature. In @mistralai/mistralai, 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

Mistral npm `@mistralai/mistralai`, `@mistralai/mistralai-azure`, `@mistralai/mistralai-gcp` were compromised by a supply chain attack related to the [TanStack security incident](https://github.com/TanStack/router/security/advisories/GHSA-g7cv-rxg3-hmpx). An automated worm associated with the attack led to **compromised npm package versions being published**. Current investigation indicates that an affected developer device was involved. We have no indication that Mistral infrastructure was compromised. The compromised versions were removed from npm. They were available only between May 11 at 22\:45 UTC and May 12 at 01\:53 UTC. **Previous and later versions are not affected by this advisory**. ## Impact The dropper **is broken**, it has no impact. - `setup.mjs` references `tanstack_runner.js` but the payload file is named `router_init.js` - `execFileSync` throws `ENOENT` and the tmpdir is wiped before payload runs. Bun gets downloaded to a tmpdir but no payload execution. We still recommend removing the packages, see below for remediation. ## Check whether you are affected You are affected if one of the package versions above was installed in any environment **during the exposure window** or is present in a lockfile, build artifact, container image, package cache, or deployment image. | Package | Affected versions | |---|---| | `@mistralai/mistralai` | `2.2.2`, `2.2.3`, `2.2.4` | | `@mistralai/mistralai-azure` | `1.7.1`, `1.7.2`, `1.7.3` | | `@mistralai/mistralai-gcp` | `1.7.1`, `1.7.2`, `1.7.3` | Check installed versions: ```bash npm ls @mistralai/mistralai @mistralai/mistralai-azure @mistralai/mistralai-gcp grep -n -A 4 -B 2 -E '@mistralai/(mistralai|mistralai-azure|mistralai-gcp)|2\.2\.[2-4]|1\.7\.[1-3]' \ package-lock.json pnpm-lock.yaml yarn.lock 2>/dev/null ``` Look for any of the following files - `router_init.js` (embedded in all @tanstack packages): `ab4fcadaec49c03278063dd269ea5eef82d24f2124a8e15d7b90f2fa8601266c` - `tanstack_runner.js` (from git commit): `2ec78d556d696e208927cc503d48e4b5eb56b31abc2870c2ed2e98d6be27fc96` - `@tanstack/setup` package.json: `7c12d8614c624c70d6dd6fc2ee289332474abaa38f70ebe2cdef064923ca3a9b` You may also run this (read-only) [script](https://gist.github.com/beowolx2/a3ceeb18d1f1cec977d5cc6eaf41c96a) that will automatically flag known malicious files. You are not affected by this advisory if you did not install the affected package versions and they are not present in your lockfiles, build caches, deployment artifacts, or package mirrors. If the command finds an affected version, continue with the [remediation steps below](#remediate-affected-systems). If you use private package mirrors, caches, or container base images, check those copies too. ## Remediate affected systems 1. Stop using the affected package version immediately. 2. Clean systems where one of this package has been installed.

GHSA-jgg6-4rpr-wfh7 Affected @mistralai/mistralai Versions

9 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
@mistralai/mistralai
npm
2.2.2
All 1 versions
2.2.2
None specified
@mistralai/mistralai-azure
npm
1.7.1
All 1 versions
1.7.1
None specified
@mistralai/mistralai-gcp
npm
1.7.1
All 1 versions
1.7.1
None specified
@mistralai/mistralai
npm
2.2.3
All 1 versions
2.2.3
None specified
@mistralai/mistralai
npm
2.2.4
All 1 versions
2.2.4
None specified
@mistralai/mistralai-azure
npm
1.7.2
All 1 versions
1.7.2
None specified
@mistralai/mistralai-azure
npm
1.7.3
All 1 versions
1.7.3
None specified
@mistralai/mistralai-gcp
npm
1.7.2
All 1 versions
1.7.2
None specified
@mistralai/mistralai-gcp
npm
1.7.3
All 1 versions
1.7.3
None specified

References

Frequently Asked Questions

What is GHSA-jgg6-4rpr-wfh7?
GHSA-jgg6-4rpr-wfh7 is a security vulnerability in @mistralai/mistralai involving Broken dropper in @mistralai/mistralai, @mistralai/mistralai-azure, @mistralai/mistralai-gcp under CWE-506: Embedded Malicious Code.
Which @mistralai/mistralai versions are affected?
Affected versions include releases prior to current release patches across affected packages: @mistralai/mistralai, @mistralai/mistralai-azure, @mistralai/mistralai-gcp.
What version fixes GHSA-jgg6-4rpr-wfh7?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is @mistralai/mistralai affected?
Yes, @mistralai/mistralai is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
Is @mistralai/mistralai-azure affected?
Yes, @mistralai/mistralai-azure is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of GHSA-jgg6-4rpr-wfh7?
GHSA-jgg6-4rpr-wfh7 has a CVSS v3.1 base score of 0.0 (LOW) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:N.
What CWE is associated with GHSA-jgg6-4rpr-wfh7?
GHSA-jgg6-4rpr-wfh7 is classified under CWE-506: Embedded Malicious Code (The product contains code that appears to be malicious in nature.).
How can I check npm dependencies for GHSA-jgg6-4rpr-wfh7?
Run the dependency tree command: 'npm ls @mistralai/mistralai'. 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-jgg6-4rpr-wfh7",
  "modified" : "2026-05-18T17:55:53Z",
  "published" : "2026-05-18T17:55:53Z",
  "aliases" : [ ],
  "summary" : "Broken dropper in @mistralai/mistralai, @mistralai/mistralai-azure, @mistralai/mistralai-gcp",
  "details" : "Mistral npm `@mistralai/mistralai`, `@mistralai/mistralai-azure`, `@mistralai/mistralai-gcp` were compromised by a supply chain attack related to the [TanStack security incident](https://github.com/TanStack/router/security/advisories/GHSA-g7cv-rxg3-hmpx). An automated worm associated with the attack led to **compromised npm package versions being published**.\n\nCurrent investigation indicates that an affected developer device was involved. We have no indication that Mistral infrastructure was compromised. The compromised versions were removed from npm. They were available only between May 11 at 22\\:45 UTC and May 12 at 01\\:53 UTC. **Previous and later versions are not affected by this advisory**.\n\n## Impact\n\nThe dropper **is broken**, it has no impact. \n- `setup.mjs` references `tanstack_runner.js` but the payload file is named `router_init.js`\n    - `execFileSync` throws `ENOENT` and the tmpdir is wiped before payload runs. Bun gets downloaded to a tmpdir but no payload execution.\n\nWe still recommend removing the packages, see below for remediation.\n\n## Check whether you are affected\n\nYou are affected if one of the package versions above was installed in any environment **during the exposure window** or is present in a lockfile, build artifact, container image, package cache, or deployment image.\n\n| Package | Affected versions |\n|---|---|\n| `@mistralai/mistralai` | `2.2.2`, `2.2.3`, `2.2.4` |\n| `@mistralai/mistralai-azure` | `1.7.1`, `1.7.2`, `1.7.3` |\n| `@mistralai/mistralai-gcp` | `1.7.1`, `1.7.2`, `1.7.3` |\n\nCheck installed versions:\n\n```bash\nnpm ls @mistralai/mistralai @mistralai/mistralai-azure @mistralai/mistralai-gcp\ngrep -n -A 4 -B 2 -E '@mistralai/(mistralai|mistralai-azure|mistralai-gcp)|2\\.2\\.[2-4]|1\\.7\\.[1-3]' \\\n  package-lock.json pnpm-lock.yaml yarn.lock 2>/dev/null\n```\n\nLook for any of the following files\n- `router_init.js` (embedded in all @tanstack packages): `ab4fcadaec49c03278063dd269ea5eef82d24f2124a8e15d7b90f2fa8601266c`\n- `tanstack_runner.js` (from git commit): `2ec78d556d696e208927cc503d48e4b5eb56b31abc2870c2ed2e98d6be27fc96`\n- `@tanstack/setup` package.json: `7c12d8614c624c70d6dd6fc2ee289332474abaa38f70ebe2cdef064923ca3a9b`\n\nYou may also run this (read-only) [script](https://gist.github.com/beowolx2/a3ceeb18d1f1cec977d5cc6eaf41c96a) that will automatically flag known malicious files.\n\nYou are not affected by this advisory if you did not install the affected package versions and they are not present in your lockfiles, build caches, deployment artifacts, or package mirrors.\n\nIf the command finds an affected version, continue with the [remediation steps below](#remediate-affected-systems). If you use private package mirrors, caches, or container base images, check those copies too.\n\n## Remediate affected systems\n\n1. Stop using the affected package version immediately.\n2. Clean systems where one of this package has been installed.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@mistralai/mistralai"
    },
    "versions" : [ "2.2.2" ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@mistralai/mistralai-azure"
    },
    "versions" : [ "1.7.1" ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@mistralai/mistralai-gcp"
    },
    "versions" : [ "1.7.1" ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@mistralai/mistralai"
    },
    "versions" : [ "2.2.3" ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@mistralai/mistralai"
    },
    "versions" : [ "2.2.4" ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@mistralai/mistralai-azure"
    },
    "versions" : [ "1.7.2" ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@mistralai/mistralai-azure"
    },
    "versions" : [ "1.7.3" ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@mistralai/mistralai-gcp"
    },
    "versions" : [ "1.7.2" ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@mistralai/mistralai-gcp"
    },
    "versions" : [ "1.7.3" ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/mistralai/client-ts/security/advisories/GHSA-jgg6-4rpr-wfh7"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/mistralai/client-ts"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-506" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-05-18T17:55:53Z",
    "nvd_published_at" : null
  }
}