CVE-2025-31363: Github.com/mattermost/mattermost/server/v8 Mattermost Doesn't Restrict Domains LLM Vulnerability

LOW
Advisory Identifier: GHSA-9h6j-4ffx-cm84
CVSS 3.0
CWE-201 CWE-497
Published
Advisory Summary

CVE-2025-31363 is a LOW (CVSS 3.0) mattermost doesn't restrict domains llm vulnerability (CWE-201: Insertion of Sensitive Information Into Sent Data) affecting Github.com/mattermost/mattermost/server/v8 libraries in the Go ecosystem. The issue involves mattermost doesn't restrict domains llm can request to contact upstream. Remediation is available by upgrading affected packages to version 10.5.1, 10.4.3, 9.11.10, 8.0.0-20250218121836-2b5275d87136.

CVE-2025-31363 at a Glance

CVE Identifier CVE-2025-31363
GHSA Identifier GHSA-9h6j-4ffx-cm84
Severity LOW
CVSS v3.1 Base Score 3.0
CWE Classification CWE-201: Insertion of Sensitive Information Into Sent Data
Affected Product Github.com/mattermost/mattermost/server/v8
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 3.0

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

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

How to Fix CVE-2025-31363

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

github.com/mattermost/mattermost/server/v8 fixed: 10.5.1
Upgrade github.com/mattermost/mattermost/server/v8 to 10.5.1
github.com/mattermost/mattermost/server/v8 fixed: 10.4.3
Upgrade github.com/mattermost/mattermost/server/v8 to 10.4.3
github.com/mattermost/mattermost/server/v8 fixed: 9.11.10
Upgrade github.com/mattermost/mattermost/server/v8 to 9.11.10
github.com/mattermost/mattermost/server/v8 fixed: 8.0.0-20250218121836-2b5275d87136
Upgrade github.com/mattermost/mattermost/server/v8 to 8.0.0-20250218121836-2b5275d87136
Verify Direct and Transitive Dependencies

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

inspect dependencies for github.com/mattermost/mattermost/server/v8

How to Check if You Are Affected

To determine whether your application is affected by CVE-2025-31363, inspect your project dependencies for Github.com/mattermost/mattermost/server/v8:

inspect dependencies for github.com/mattermost/mattermost/server/v8

Analyze the terminal output to locate any version of Github.com/mattermost/mattermost/server/v8 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 10.5.1), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-201: Insertion of Sensitive Information Into Sent Data, where the code transmits data to another actor, but a portion of the data includes sensitive information that should not be accessible to that actor. In Github.com/mattermost/mattermost/server/v8, 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 versions 10.4.x <= 10.4.2, 10.5.x <= 10.5.0, 9.11.x <= 9.11.9 fail to restrict domains the LLM can request to contact upstream which allows an authenticated user to exfiltrate data from an arbitrary server accessible to the victim via performing a prompt injection in the AI plugin's Jira tool.

CVE-2025-31363 Affected Github.com/mattermost/mattermost/server/v8 Versions

4 component(s)
Fixed Versions:
10.5.110.4.39.11.108.0.0-20250218121836-2b5275d87136
Product / Package Ecosystem Affected Versions Fixed Version
github.com/mattermost/mattermost/server/v8
Go
≥ 10.5.0
< 10.5.1
10.5.1
github.com/mattermost/mattermost/server/v8
Go
≥ 10.4.0
< 10.4.3
10.4.3
github.com/mattermost/mattermost/server/v8
Go
≥ 9.11.0
< 9.11.10
9.11.10
github.com/mattermost/mattermost/server/v8
Go
< 8.0.0-20250218121836-2b5275d87136
8.0.0-20250218121836-2b5275d87136

References

Frequently Asked Questions

What is CVE-2025-31363?
CVE-2025-31363 is a security vulnerability in Github.com/mattermost/mattermost/server/v8 involving Mattermost doesn't restrict domains LLM can request to contact upstream under CWE-201: Insertion of Sensitive Information Into Sent Data.
Which Github.com/mattermost/mattermost/server/v8 versions are affected?
Affected versions include releases prior to 10.5.1, 10.4.3, 9.11.10, 8.0.0-20250218121836-2b5275d87136 across affected packages: github.com/mattermost/mattermost/server/v8.
What version fixes CVE-2025-31363?
Upgrading to 10.5.1, 10.4.3, 9.11.10, 8.0.0-20250218121836-2b5275d87136 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/mattermost/mattermost/server/v8 affected?
Yes, github.com/mattermost/mattermost/server/v8 is affected in releases prior to 10.5.1, 10.4.3, 9.11.10, 8.0.0-20250218121836-2b5275d87136. Upgrade your dependency to 10.5.1, 10.4.3, 9.11.10, 8.0.0-20250218121836-2b5275d87136 or later.
What is the CVSS score of CVE-2025-31363?
CVE-2025-31363 has a CVSS v3.1 base score of 3.0 (LOW) with vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:N/A:N.
What CWE is associated with CVE-2025-31363?
CVE-2025-31363 is classified under CWE-201: Insertion of Sensitive Information Into Sent Data (The code transmits data to another actor, but a portion of the data includes sensitive information that should not be accessible to that actor.).
How can I check Go dependencies for CVE-2025-31363?
Run the dependency tree command: 'inspect dependencies for github.com/mattermost/mattermost/server/v8'. 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-9h6j-4ffx-cm84",
  "modified" : "2025-04-23T15:19:55Z",
  "published" : "2025-04-16T12:31:19Z",
  "aliases" : [ "CVE-2025-31363" ],
  "summary" : "Mattermost doesn't restrict domains LLM can request to contact upstream",
  "details" : "Mattermost versions 10.4.x <= 10.4.2, 10.5.x <= 10.5.0, 9.11.x <= 9.11.9 fail to restrict domains the LLM can request to contact upstream which allows an authenticated user to exfiltrate data from an arbitrary server accessible to the victim via performing a prompt injection in the AI plugin's Jira tool.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/mattermost/mattermost/server/v8"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "10.5.0"
      }, {
        "fixed" : "10.5.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/mattermost/mattermost/server/v8"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "10.4.0"
      }, {
        "fixed" : "10.4.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/mattermost/mattermost/server/v8"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "9.11.0"
      }, {
        "fixed" : "9.11.10"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/mattermost/mattermost/server/v8"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "8.0.0-20250218121836-2b5275d87136"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-31363"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/mattermost/mattermost"
  }, {
    "type" : "WEB",
    "url" : "https://mattermost.com/security-updates"
  }, {
    "type" : "WEB",
    "url" : "https://pkg.go.dev/vuln/GO-2025-3622"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-201", "CWE-497" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-04-16T15:15:47Z",
    "nvd_published_at" : "2025-04-16T10:15:15Z"
  }
}