CVE-2023-5968
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.
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
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 Medium
CVSS: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 Medium
CVSS: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 Medium
CVSS: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 Medium
CVSS: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 Medium
CVSS: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 Medium
CVSS: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
| Package | Affected | Fixed |
|---|---|---|
github.com/mattermost/mattermost/server/v8Go |
8.0.0 up to 8.0.4 | 8.0.4 |
github.com/mattermost/mattermost/server/v8Go |
8.1.0 up to 8.1.3 | 8.1.3 |
github.com/mattermost/mattermost/server/v8Go |
9.0.0 to 9.0.0 | 9.0.1 |
github.com/mattermost/mattermost-server/v6Go |
5.4.0-rc1 up to 7.8.12 | 7.8.12 |
github.com/mattermost/mattermost/server/v8Go |
before 8.0.0-20230825233148-f787fd63368a | 8.0.0-20230825233148-f787fd63368a |
github.com/mattermost/mattermost-server/v6Go |
before 5.3.2-0.20230825233148-f787fd63368a | 5.3.2-0.20230825233148-f787fd63368a |
github.com/mattermost/mattermost-server/v5Go |
before 5.3.2-0.20230825233148-f787fd63368a | 5.3.2-0.20230825233148-f787fd63368a |
github.com/mattermost/mattermost-serverGo |
before 5.3.2-0.20230825233148-f787fd63368a | 5.3.2-0.20230825233148-f787fd63368a |
github.com/mattermost/mattermost/server/v8Go |
9.0.0 up to 9.0.1 | 9.0.1 |
Public exploits
Links only. Every CVE stores no exploit code.
| Source | Link | Date |
|---|---|---|
| PoC in GitHub | Curtail-Inc/hello-ReGrade-security | 2026-07-04 |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases, published | EUVD | |
| first indexed | CVE 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
mattermost.com/security-updates
nvd.nist.gov/vuln/detail/CVE-2023-5968
github.com/mattermost/mattermost/pull/24362
github.com/mattermost/mattermost/pull/24566
github.com/mattermost/mattermost/commit/698f4a97da564e2c1f2bf1fbd01755cefa3b7881
github.com/advisories/GHSA-r67m-mf7v-qp7j
github.com/CVEProject/cvelistV5/tree/main/cves/2023/5xxx/CVE-2023-5968.json
github.com/mattermost/mattermost