CVE-2024-47003: Mattermost fails to strip `embeds` from `metadata` when broadcasting `posted` events
Mattermost does not strip embeds from metadata when broadcasting posted events. This allows users to include arbitrary embeds in posts, which are then broadcasted via websockets. This can be exploited in many ways, for example to create permalinks with fully customizable content or to trigger a client Side Denial of Service (DoS) by sending a permalink with a non-string message.
Published Sep 26, 2024 · Updated Sep 27, 2024
Affected packages
github.com/mattermost/mattermost/server/v8
- Ecosystem
- Go
- Affected
- < 8.0.0-20240806094731-69a8b3df0f9f
- Fixed in
- 8.0.0-20240806094731-69a8b3df0f9f
- Check
go list -m github.com/mattermost/mattermost/server/v8
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Mattermost does not strip embeds from metadata when broadcasting posted events.
This allows users to include arbitrary embeds in posts, which are then broadcasted via websockets. This can be exploited in many ways, for example to create permalinks with fully customizable content or to trigger a client Side Denial of Service (DoS) by sending a permalink with a non-string message.
The advisory metadata references the appropriate go pseudo version available from pkg.go.dev
Credited to c0rydoras.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-47003
- https://mattermost.com/security-updates
- https://github.com/mattermost/mattermost/pull/27763
- https://github.com/mattermost/mattermost/commit/69a8b3df0f9fd3a7a5b792ec678b6191618d039b
- https://github.com/c0rydoras/cves/tree/main/CVE-2024-47003
- https://github.com/advisories/GHSA-59hf-mpf8-pqjh
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Go vulnerabilities
All Go entriesCVE-2026-8823
Mattermost has an Incorrect Authorization issue
low3.8Jun 22, 2026CVE-2026-3433
Mattermost doesn't restrict role_updated websocket event broadcasts to members of the affected team or channel
medium4.3Jun 12, 2026CVE-2026-6046
Mattermost doesn't validate that a username returned during bot registration belongs to a bot account
medium5.3Jun 12, 2026CVE-2026-6689
Mattermost doesn't enforce PermissionInviteUser when setting AllowOpenInvite or AllowedDomains during team creation
medium4.3Jun 12, 2026CVE-2026-6739
Mattermost doesn't require system-level permission when patching protected default system roles
medium6.7Jun 12, 2026CVE-2026-6961
Mattermost doesn't sanitize FileInfo.Name received from federated peers during shared channel file sync
high7.6Jun 12, 2026
