{"id":"GHSA-r67m-mf7v-qp7j","summary":"Mattermost password hash disclosure vulnerability","details":"Mattermost fails to properly sanitize the user object when updating the username, resulting in the password hash being included in the response body. ","aliases":["CVE-2023-5968"],"modified":"2025-07-22T17:17:20Z","published":"2023-11-06T18:30:19Z","database_specific":{"nvd_published_at":"2023-11-06T16:15:42Z","cwe_ids":["CWE-116","CWE-200"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2023-11-08T14:58:02Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-5968"},{"type":"WEB","url":"https://github.com/mattermost/mattermost/pull/24362"},{"type":"WEB","url":"https://github.com/mattermost/mattermost/pull/24566"},{"type":"WEB","url":"https://github.com/mattermost/mattermost/commit/698f4a97da564e2c1f2bf1fbd01755cefa3b7881"},{"type":"PACKAGE","url":"https://github.com/mattermost/mattermost"},{"type":"WEB","url":"https://mattermost.com/security-updates"}],"affected":[{"package":{"name":"github.com/mattermost/mattermost-server/v6","ecosystem":"Go","purl":"pkg:golang/github.com/mattermost/mattermost-server/v6"},"ranges":[{"type":"SEMVER","events":[{"introduced":"5.4.0-rc1"},{"fixed":"7.8.12"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/11/GHSA-r67m-mf7v-qp7j/GHSA-r67m-mf7v-qp7j.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":"8.0.0"},{"fixed":"8.0.4"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/11/GHSA-r67m-mf7v-qp7j/GHSA-r67m-mf7v-qp7j.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":"8.1.0"},{"fixed":"8.1.3"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/11/GHSA-r67m-mf7v-qp7j/GHSA-r67m-mf7v-qp7j.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":"9.0.0"},{"fixed":"9.0.1"}]}],"versions":["9.0.0"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/11/GHSA-r67m-mf7v-qp7j/GHSA-r67m-mf7v-qp7j.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-20230825233148-f787fd63368a"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/11/GHSA-r67m-mf7v-qp7j/GHSA-r67m-mf7v-qp7j.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"},{"fixed":"5.3.2-0.20230825233148-f787fd63368a"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/11/GHSA-r67m-mf7v-qp7j/GHSA-r67m-mf7v-qp7j.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"},{"fixed":"5.3.2-0.20230825233148-f787fd63368a"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/11/GHSA-r67m-mf7v-qp7j/GHSA-r67m-mf7v-qp7j.json"}},{"package":{"name":"github.com/mattermost/mattermost-server","ecosystem":"Go","purl":"pkg:golang/github.com/mattermost/mattermost-server"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"5.3.2-0.20230825233148-f787fd63368a"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/11/GHSA-r67m-mf7v-qp7j/GHSA-r67m-mf7v-qp7j.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N"}]}