{"id":"CVE-2023-5968","aliases":["EUVD-2023-3022","GHSA-r67m-mf7v-qp7j"],"status":"published","title":"Password hash in response body after username update","description":"Mattermost fails to properly sanitize the user object when updating the username, resulting in the password hash being included in the response body.","severity":{"version":"3.1","score":4.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.00616,"percentile":0.49793,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":true},"cwes":["CWE-116","CWE-200"],"published":"2023-11-06T15:35:14Z","modified":"2026-10-28T02:30:37Z","exploits":[{"source":"pocgithub","id":"Curtail-Inc/hello-ReGrade-security","title":"Curtail-Inc/hello-ReGrade-security","date":"2026-07-04","url":"https://github.com/Curtail-Inc/hello-ReGrade-security"}],"fixes":[{"ecosystem":"Go","package":"github.com/mattermost/mattermost/server/v8","fixed_in":["8.0.4","8.1.3","9.0.1","8.0.0-20230825233148-f787fd63368a"],"sources":["ghsa","osv"]},{"ecosystem":"Go","package":"github.com/mattermost/mattermost-server/v6","fixed_in":["7.8.12","5.3.2-0.20230825233148-f787fd63368a"],"sources":["ghsa","osv"]},{"ecosystem":"Go","package":"github.com/mattermost/mattermost-server/v5","fixed_in":["5.3.2-0.20230825233148-f787fd63368a"],"sources":["ghsa","osv"]},{"ecosystem":"Go","package":"github.com/mattermost/mattermost-server","fixed_in":["5.3.2-0.20230825233148-f787fd63368a"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Go","package":"github.com/mattermost/mattermost/server/v8","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"8.0.0"},{"fixed":"8.0.4"}]}]},{"source":"ghsa","ecosystem":"Go","package":"github.com/mattermost/mattermost/server/v8","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"8.1.0"},{"fixed":"8.1.3"}]}]},{"source":"ghsa","ecosystem":"Go","package":"github.com/mattermost/mattermost/server/v8","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"9.0.0"},{"last_affected":"9.0.0"},{"fixed":"9.0.1"}]}],"versions":["9.0.0"]},{"source":"ghsa","ecosystem":"Go","package":"github.com/mattermost/mattermost-server/v6","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.4.0-rc1"},{"fixed":"7.8.12"}]}]},{"source":"ghsa","ecosystem":"Go","package":"github.com/mattermost/mattermost/server/v8","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.0.0-20230825233148-f787fd63368a"}]}]},{"source":"ghsa","ecosystem":"Go","package":"github.com/mattermost/mattermost-server/v6","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.3.2-0.20230825233148-f787fd63368a"}]}]},{"source":"ghsa","ecosystem":"Go","package":"github.com/mattermost/mattermost-server/v5","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.3.2-0.20230825233148-f787fd63368a"}]}]},{"source":"ghsa","ecosystem":"Go","package":"github.com/mattermost/mattermost-server","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.3.2-0.20230825233148-f787fd63368a"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/mattermost/mattermost-server/v6","ranges":[{"type":"SEMVER","events":[{"introduced":"5.4.0-rc1"},{"fixed":"7.8.12"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/mattermost/mattermost/server/v8","ranges":[{"type":"SEMVER","events":[{"introduced":"8.0.0"},{"fixed":"8.0.4"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/mattermost/mattermost/server/v8","ranges":[{"type":"SEMVER","events":[{"introduced":"8.1.0"},{"fixed":"8.1.3"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/mattermost/mattermost/server/v8","ranges":[{"type":"SEMVER","events":[{"introduced":"9.0.0"},{"fixed":"9.0.1"}]}],"versions":["9.0.0"]},{"source":"osv","ecosystem":"Go","package":"github.com/mattermost/mattermost/server/v8","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"8.0.0-20230825233148-f787fd63368a"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/mattermost/mattermost-server/v6","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"5.3.2-0.20230825233148-f787fd63368a"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/mattermost/mattermost-server/v5","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"5.3.2-0.20230825233148-f787fd63368a"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/mattermost/mattermost-server","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"5.3.2-0.20230825233148-f787fd63368a"}]}]}],"products":[{"vendor":"mattermost","product":"mattermost"}],"references":[{"url":"https://mattermost.com/security-updates","tags":["x_transferred","Vendor Advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-5968","tags":["advisory"]},{"url":"https://github.com/mattermost/mattermost/pull/24362","tags":["web"]},{"url":"https://github.com/mattermost/mattermost/pull/24566","tags":["web"]},{"url":"https://github.com/mattermost/mattermost/commit/698f4a97da564e2c1f2bf1fbd01755cefa3b7881","tags":["web"]},{"url":"https://github.com/advisories/GHSA-r67m-mf7v-qp7j"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/5xxx/CVE-2023-5968.json","tags":["advisory"]},{"url":"https://github.com/mattermost/mattermost","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2023-5968","title":"Password hash in response body after username update","description":"Mattermost fails to properly sanitize the user object when updating the username, resulting in the password hash being included in the response body. \n\n","status":"published","published":"2023-11-06T15:35:14.094Z","modified":"2024-09-12T19:26:46.796Z","cvss":[{"version":"3.1","score":4.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","level":"medium","assessor":"cna"}],"cwes":["CWE-200"],"updated_at":"2026-11-02T14:35:17.149492Z"}],"euvd":[{"id":"EUVD-2023-3022","description":"Mattermost fails to properly sanitize the user object when updating the username, resulting in the password hash being included in the response body. \n\n","status":"published","published":"2023-11-06T15:35:14Z","modified":"2024-09-12T19:26:46Z","cvss":[{"version":"3.1","score":4.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","level":"medium"}],"updated_at":"2026-11-03T00:55:56.835723Z"}],"ghsa":[{"id":"GHSA-r67m-mf7v-qp7j","title":"Mattermost password hash disclosure vulnerability","description":"Mattermost fails to properly sanitize the user object when updating the username, resulting in the password hash being included in the response body. ","status":"published","published":"2023-11-06T18:30:19Z","modified":"2025-07-22T17:17:22Z","cvss":[{"version":"3.1","score":4.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","level":"medium"}],"cwes":["CWE-116","CWE-200"],"updated_at":"2026-11-02T14:38:51.864708Z"}],"nvd":[{"id":"CVE-2023-5968","description":"Mattermost fails to properly sanitize the user object when updating the username, resulting in the password hash being included in the response body. \n\n","status":"published","published":"2023-11-06T16:15:42.897Z","modified":"2026-06-17T06:49:45.93Z","cvss":[{"version":"3.1","score":4.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","level":"medium","assessor":"secondary"},{"version":"3.1","score":4.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-200","CWE-116"],"updated_at":"2026-11-02T14:08:43.669554Z"}],"osv":[{"id":"CVE-2023-5968","title":"Password hash in response body after username update","description":"Mattermost fails to properly sanitize the user object when updating the username, resulting in the password hash being included in the response body. \n\n","status":"published","published":"2023-11-06T15:35:14.094Z","modified":"2026-10-28T02:30:37.643548296Z","cvss":[{"version":"3.1","score":4.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","level":"medium"}],"cwes":["CWE-200"],"updated_at":"2026-11-02T15:44:36.851042Z"},{"id":"GHSA-r67m-mf7v-qp7j","title":"Mattermost password hash disclosure vulnerability","description":"Mattermost fails to properly sanitize the user object when updating the username, resulting in the password hash being included in the response body. ","status":"published","published":"2023-11-06T18:30:19Z","modified":"2025-07-22T17:17:20Z","cvss":[{"version":"3.1","score":4.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","level":"medium"}],"cwes":["CWE-116","CWE-200"],"updated_at":"2026-11-02T15:46:55.480549Z"}]}}
