{"id":"GHSA-qj47-w9f2-qg44","summary":"Mattermost Does Not Sanitize the Team Invite ID","details":"Mattermost versions 10.8.x \u003c= 10.8.3, 10.5.x \u003c= 10.5.8, 9.11.x \u003c= 9.11.17, 10.9.x \u003c= 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.","aliases":["CVE-2025-47870","GO-2025-3905"],"modified":"2025-08-29T20:55:09Z","published":"2025-08-21T09:30:21Z","database_specific":{"nvd_published_at":"2025-08-21T08:15:30Z","cwe_ids":["CWE-306"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2025-08-21T16:02:26Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-47870"},{"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-3905"}],"affected":[{"package":{"name":"github.com/mattermost/mattermost-server","ecosystem":"Go","purl":"pkg:golang/github.com/mattermost/mattermost-server"},"ranges":[{"type":"SEMVER","events":[{"introduced":"10.8.0"},{"fixed":"10.8.4"}]}],"database_specific":{"last_known_affected_version_range":"\u003c= 10.8.3","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/08/GHSA-qj47-w9f2-qg44/GHSA-qj47-w9f2-qg44.json"}},{"package":{"name":"github.com/mattermost/mattermost-server","ecosystem":"Go","purl":"pkg:golang/github.com/mattermost/mattermost-server"},"ranges":[{"type":"SEMVER","events":[{"introduced":"10.5.0"},{"fixed":"10.5.9"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/08/GHSA-qj47-w9f2-qg44/GHSA-qj47-w9f2-qg44.json","last_known_affected_version_range":"\u003c= 10.5.8"}},{"package":{"name":"github.com/mattermost/mattermost-server","ecosystem":"Go","purl":"pkg:golang/github.com/mattermost/mattermost-server"},"ranges":[{"type":"SEMVER","events":[{"introduced":"9.11.0"},{"fixed":"9.11.18"}]}],"database_specific":{"last_known_affected_version_range":"\u003c= 9.11.17","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/08/GHSA-qj47-w9f2-qg44/GHSA-qj47-w9f2-qg44.json"}},{"package":{"name":"github.com/mattermost/mattermost-server","ecosystem":"Go","purl":"pkg:golang/github.com/mattermost/mattermost-server"},"ranges":[{"type":"SEMVER","events":[{"introduced":"10.9.0"},{"fixed":"10.9.3"}]}],"database_specific":{"last_known_affected_version_range":"\u003c= 10.9.2","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/08/GHSA-qj47-w9f2-qg44/GHSA-qj47-w9f2-qg44.json"}},{"package":{"name":"github.com/mattermost/mattermost/server/v8","ecosystem":"Go","purl":"pkg:golang/github.com/mattermost/mattermost/server/v8"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"8.0.0-20250708065844-b38e2eccda18"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/08/GHSA-qj47-w9f2-qg44/GHSA-qj47-w9f2-qg44.json"}},{"package":{"name":"github.com/mattermost/mattermost-server/v5","ecosystem":"Go","purl":"pkg:golang/github.com/mattermost/mattermost-server/v5"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"5.39.3"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/08/GHSA-qj47-w9f2-qg44/GHSA-qj47-w9f2-qg44.json"}},{"package":{"name":"github.com/mattermost/mattermost-server/v6","ecosystem":"Go","purl":"pkg:golang/github.com/mattermost/mattermost-server/v6"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"6.7.2"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/08/GHSA-qj47-w9f2-qg44/GHSA-qj47-w9f2-qg44.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N"}]}