Live threats

All CVEs / Mattermost

CVE-2023-5968Mattermost

Medium 4.9

Priority
29
CVSS 3.1
4.9
EPSS
0.7%
probability of exploitation in 30 days · percentile 50
Auth required
Yes
Published
Nov 6, 2023
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-200, CWE-116
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N

What happens

Mattermost fails to properly sanitize the user object when updating the username, resulting in the password hash being included in the response body.

Original NVD text.

What to do

  1. Apply the vendor's security update for Mattermost.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go github.com/mattermost/mattermost-server < 5.3.2-0.20230825233148-f787fd63368a 5.3.2-0.20230825233148-f787fd63368a go get github.com/mattermost/mattermost-server@v5.3.2-0.20230825233148-f787fd63368a
Go github.com/mattermost/mattermost-server/v5 < 5.3.2-0.20230825233148-f787fd63368a 5.3.2-0.20230825233148-f787fd63368a go get github.com/mattermost/mattermost-server/v5@v5.3.2-0.20230825233148-f787fd63368a
Go github.com/mattermost/mattermost-server/v6 ≥ 5.4.0-rc1 < 7.8.12 7.8.12 go get github.com/mattermost/mattermost-server/v6@v7.8.12
Go github.com/mattermost/mattermost-server/v6 < 5.3.2-0.20230825233148-f787fd63368a 5.3.2-0.20230825233148-f787fd63368a go get github.com/mattermost/mattermost-server/v6@v5.3.2-0.20230825233148-f787fd63368a
Go github.com/mattermost/mattermost/server/v8 ≥ 8.0.0 < 8.0.4 8.0.4 go get github.com/mattermost/mattermost/server/v8@v8.0.4
Go github.com/mattermost/mattermost/server/v8 ≥ 8.1.0 < 8.1.3 8.1.3 go get github.com/mattermost/mattermost/server/v8@v8.1.3
Go github.com/mattermost/mattermost/server/v8 ≥ 9.0.0 < 9.0.1 9.0.1 go get github.com/mattermost/mattermost/server/v8@v9.0.1
Go github.com/mattermost/mattermost/server/v8 < 8.0.0-20230825233148-f787fd63368a 8.0.0-20230825233148-f787fd63368a go get github.com/mattermost/mattermost/server/v8@v8.0.0-20230825233148-f787fd63368a

Per OSV / GitHub Advisories (GHSA-r67m-mf7v-qp7j). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
mattermostmattermost≤ 7.8.11
mattermostmattermost≥ 8.0.0 ≤ 8.0.3
mattermostmattermost≥ 8.1.0 ≤ 8.1.2
mattermostmattermost9.0.0

Official sources

References

Links published by the sources. Open them with care.