Every CVE Search/ Get API key

CVE-2023-5968

Password hash in response body after username update

4.9 MediumPublic exploitFix available

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

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
High
User interaction
None

What an attacker can affect

Confidentiality
High
Integrity
None
Availability
None

Exploit likelihood

0.62%Up 0.6 points since Nov 7, 2023
90%50%10%1%

What each source reports

CVE List Score used 4.9

Password hash in response body after username update

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

Record
CVE-2023-5968
CVSS 3.1
4.9 MediumCVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
Weakness
CWE-200
Updated
2026-11-02
EUVDEUVD-2023-3022 4.9

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

Record
EUVD-2023-3022
CVSS 3.1
4.9 MediumCVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
Updated
2026-11-03
GitHub AdvisoriesGHSA-r67m-mf7v-qp7j 4.9

Mattermost password hash disclosure vulnerability

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

Record
GHSA-r67m-mf7v-qp7j
CVSS 3.1
4.9 MediumCVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
Weakness
CWE-116, CWE-200
Updated
2026-11-02
NVD 4.9

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

Record
CVE-2023-5968
CVSS 3.1
4.9 MediumCVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
Weakness
CWE-200, CWE-116
Updated
2026-11-02
OSV 4.9

Password hash in response body after username update

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

Record
CVE-2023-5968
CVSS 3.1
4.9 MediumCVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
Weakness
CWE-200
Updated
2026-11-02
OSVGHSA-r67m-mf7v-qp7j 4.9

Mattermost password hash disclosure vulnerability

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

Record
GHSA-r67m-mf7v-qp7j
CVSS 3.1
4.9 MediumCVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
Weakness
CWE-116, CWE-200
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
github.com/mattermost/mattermost/server/v8
Go
8.0.0 up to 8.0.4
8.0.4
github.com/mattermost/mattermost/server/v8
Go
8.1.0 up to 8.1.3
8.1.3
github.com/mattermost/mattermost/server/v8
Go
9.0.0 to 9.0.0
9.0.1
github.com/mattermost/mattermost-server/v6
Go
5.4.0-rc1 up to 7.8.12
7.8.12
github.com/mattermost/mattermost/server/v8
Go
before 8.0.0-20230825233148-f787fd63368a
8.0.0-20230825233148-f787fd63368a
github.com/mattermost/mattermost-server/v6
Go
before 5.3.2-0.20230825233148-f787fd63368a
5.3.2-0.20230825233148-f787fd63368a
github.com/mattermost/mattermost-server/v5
Go
before 5.3.2-0.20230825233148-f787fd63368a
5.3.2-0.20230825233148-f787fd63368a
github.com/mattermost/mattermost-server
Go
before 5.3.2-0.20230825233148-f787fd63368a
5.3.2-0.20230825233148-f787fd63368a
github.com/mattermost/mattermost/server/v8
Go
9.0.0 up to 9.0.1
9.0.1

Public exploits

Links only. Every CVE stores no exploit code.

Public exploits
SourceLinkDate
PoC in GitHubCurtail-Inc/hello-ReGrade-security2026-07-04

History

History
RecordedChangedSources
aliases, publishedEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV, PoC in GitHub

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2023-5968 is a medium vulnerability (CVSS 4.9) in Mattermost, published November 6, 2023. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 0.62%, the 49th percentile. Fixed in github.com/mattermost/mattermost/server/v8 8.0.4.

References

MoveEnter Open