# CVE-2025-58075: Arbitrary Mattermost Team can be joined by manipulating the SAML RelayState

- Severity: High 8.1 (CVSS:3.1, scored by Mattermost) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.34%, higher than 29% of CVEs (2026-12-01)
- Published: 2025-10-16T08:20:06.939Z
- Modified: 2026-10-19T16:10:00.260Z
- Also known as: GHSA-r6qj-894f-5hr2, GO-2025-4035
- Weaknesses: CWE-862
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Mattermost

## Description

Mattermost versions 10.11.x <= 10.11.1, 10.10.x <= 10.10.2, 10.5.x <= 10.5.10 fail to verify a user has permission to join a Mattermost team using the original invite token which allows any attacked to join any team on a Mattermost server regardless of restrictions via manipulating the RelayState

(As written by CVE List.)

## Affected

- Mattermost Mattermost: from 10.11.0 up to 10.11.1; from 10.10.0 up to 10.10.2; from 10.5.0 up to 10.5.10 (not affected: 10.12.0; 10.11.2; 10.10.3; 10.5.11)
- github.com/mattermost/mattermost/server/v8 (Go): before 8.0.0-20250815100400-2d5cdc6e217e; all versions
- github.com/mattermost/mattermost-server (Go): from 10.11.0 before 10.11.2; from 10.10.0 before 10.10.3; from 10.5.0 before 10.5.11; from 10.5.0+incompatible before 10.5.11+incompatible; from 10.10.0+incompatible before 10.10.3+incompatible; from 10.11.0+incompatible before 10.11.2+incompatible
- github.com/mattermost/mattermost-server/v5 (Go): all versions
- github.com/mattermost/mattermost-server/v6 (Go): all versions
- mattermost mattermost_server: from 10.5.0 before 10.5.11; from 10.10.0 before 10.10.3; from 10.11.0 before 10.11.3

## Every score

- Mattermost: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`

## References

- <https://mattermost.com/security-updates> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-58075> (advisory)
- <https://github.com/mattermost/mattermost/commit/0e478b2d895e89143c7732c7b33e16d98ace663d> (web)
- <https://github.com/mattermost/mattermost/commit/2d5cdc6e217eb244e7f2122cb89f85140b6d982a> (web)
- <https://github.com/mattermost/mattermost/commit/7a2ac23e207429d7db8acc3770908c15c0b5c33e> (web)
- <https://github.com/mattermost/mattermost> (package)
- <https://github.com/advisories/GHSA-r6qj-894f-5hr2> (advisory)

## Sources

- CVE List: [CVE-2025-58075](https://www.cve.org/CVERecord?id=CVE-2025-58075), CVE Terms of Use, modified 2026-02-26
- GitHub Advisory Database: [GHSA-r6qj-894f-5hr2](https://github.com/advisories/GHSA-r6qj-894f-5hr2), CC-BY-4.0, modified 2025-11-05
- Go Vulnerability Database: [GO-2025-4035](https://pkg.go.dev/vuln/GO-2025-4035), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2025-58075](https://nvd.nist.gov/vuln/detail/CVE-2025-58075), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2025-58075 · Whole record: https://cve.day/CVE-2025-58075.json · Rebuilt by cve.day 2026-11-25T22:59:06.481Z
