CVE-2025-1398: Mattermost desktop Mattermost Desktop App Allows The Vulnerability

LOW
Advisory Identifier: GHSA-xmvv-w44w-j8wx
CVSS 3.3
CWE-426
Published
Advisory Summary

CVE-2025-1398 is a LOW (CVSS 3.3) mattermost desktop app allows the vulnerability (CWE-426: Untrusted Search Path) affecting Mattermost desktop libraries in the npm ecosystem. The issue involves mattermost desktop app allows the bypass of transparency, consent, and control (tcc) via code injection. Remediation is available by upgrading affected packages to version 5.11.0.

CVE-2025-1398 at a Glance

CVE Identifier CVE-2025-1398
GHSA Identifier GHSA-xmvv-w44w-j8wx
Severity LOW
CVSS v3.1 Base Score 3.3
CWE Classification CWE-426: Untrusted Search Path
Affected Product Mattermost desktop
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 3.3

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

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

How to Fix CVE-2025-1398

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

mattermost-desktop fixed: 5.11.0
npm install mattermost-desktop@5.11.0
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 mattermost-desktop

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2025-1398, inspect your project dependencies using npm:

npm ls mattermost-desktop

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

Note: The npm ls mattermost-desktop 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-426: Untrusted Search Path, where the product searches for critical resources using an externally-supplied search path that can point to resources that are not under the product's direct control. In Mattermost desktop, 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

Mattermost Desktop App versions <=5.10.0 explicitly declared unnecessary macOS entitlements which allows an attacker with remote access to bypass Transparency, Consent, and Control (TCC) via code injection.

CVE-2025-1398 Affected Mattermost desktop Versions

1 component(s)
Fixed Versions:
5.11.0
Product / Package Ecosystem Affected Versions Fixed Version
mattermost-desktop
npm
< 5.11.0
5.11.0

References

Frequently Asked Questions

What is CVE-2025-1398?
CVE-2025-1398 is a security vulnerability in Mattermost desktop involving Mattermost Desktop App allows the bypass of Transparency, Consent, and Control (TCC) via code injection under CWE-426: Untrusted Search Path.
Which Mattermost desktop versions are affected?
Affected versions include releases prior to 5.11.0 across affected packages: mattermost-desktop.
What version fixes CVE-2025-1398?
Upgrading to 5.11.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is mattermost-desktop affected?
Yes, mattermost-desktop is affected in releases prior to 5.11.0. Upgrade your dependency to 5.11.0 or later.
What is the CVSS score of CVE-2025-1398?
CVE-2025-1398 has a CVSS v3.1 base score of 3.3 (LOW) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2025-1398?
CVE-2025-1398 is classified under CWE-426: Untrusted Search Path (The product searches for critical resources using an externally-supplied search path that can point to resources that are not under the product's direct control.).
How can I check npm dependencies for CVE-2025-1398?
Run the dependency tree command: 'npm ls mattermost-desktop'. 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-xmvv-w44w-j8wx",
  "modified" : "2025-03-17T21:27:32Z",
  "published" : "2025-03-17T15:31:50Z",
  "aliases" : [ "CVE-2025-1398" ],
  "summary" : "Mattermost Desktop App allows the bypass of Transparency, Consent, and Control (TCC) via code injection",
  "details" : "Mattermost Desktop App versions <=5.10.0 explicitly declared unnecessary macOS entitlements which allows an attacker with remote access to bypass Transparency, Consent, and Control (TCC) via code injection.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "mattermost-desktop"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "5.11.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-1398"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/mattermost/desktop"
  }, {
    "type" : "WEB",
    "url" : "https://mattermost.com/security-updates"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-426" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-03-17T21:27:32Z",
    "nvd_published_at" : "2025-03-17T15:15:43Z"
  }
}