Advisory

GHSA-qj47-w9f2-qg44

Also known as: CVE-2025-47870, GO-2025-3905

Summary

Mattermost Does Not Sanitize the Team Invite ID

Details

Mattermost versions 10.8.x <= 10.8.3, 10.5.x <= 10.5.8, 9.11.x <= 9.11.17, 10.9.x <= 10.9.2 fail to sanitize the team invite ID in the POST /api/v4/teams/:teamId/restore endpoint which allows an team admin with no member invite privileges to get the team’s invite id.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2025-08-21 09:30 UTC
Modified
2025-08-29 20:55 UTC

Affected packages and fixes

github.com/mattermost/mattermost-server

Go · All systems

Affected

  • introduced 10.8.0, fixed 10.8.4 (semver)

Fixed versions

10.8.4

Fix

github.com/mattermost/mattermost-server

Go · All systems

Affected

  • introduced 10.5.0, fixed 10.5.9 (semver)

Fixed versions

10.5.9

Fix

github.com/mattermost/mattermost-server

Go · All systems

Affected

  • introduced 9.11.0, fixed 9.11.18 (semver)

Fixed versions

9.11.18

Fix

github.com/mattermost/mattermost-server

Go · All systems

Affected

  • introduced 10.9.0, fixed 10.9.3 (semver)

Fixed versions

10.9.3

Fix

github.com/mattermost/mattermost/server/v8

Go · All systems

Affected

  • introduced 0, fixed 8.0.0-20250708065844-b38e2eccda18 (semver)

Fixed versions

8.0.0-20250708065844-b38e2eccda18

Fix

  • Fixed version 8.0.0-20250708065844-b38e2eccda18
    go get github.com/mattermost/mattermost/server/[email protected]

github.com/mattermost/mattermost-server/v5

Go · All systems

Affected

  • introduced 0, last affected 5.39.3 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

github.com/mattermost/mattermost-server/v6

Go · All systems

Affected

  • introduced 0, last affected 6.7.2 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences