# CVE-2023-5968: Password hash in response body after username update

- Severity: Medium 4.9 (CVSS:3.1, scored by Mattermost) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.62%, higher than 50% of CVEs (2026-12-01)
- Published: 2023-11-06T15:35:14.094Z
- Modified: 2026-06-17T06:49:45.930Z
- Also known as: GHSA-r67m-mf7v-qp7j
- Weaknesses: CWE-116, CWE-200
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Mattermost

## Description

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

(As written by CVE List.)

## Affected

- Mattermost Mattermost: up to 7.8.11; up to 8.0.3; up to 8.1.2; up to 9.0.0; from 8.0.0 up to 8.0.3; from 8.1.0 up to 8.1.2; 9.0.0 (not affected: 7.8.12; 8.0.4; 8.1.3; 9.0.1)
- github.com/mattermost/mattermost-server/v6 (Go): from 5.4.0-rc1 before 7.8.12; before 5.3.2-0.20230825233148-f787fd63368a
- github.com/mattermost/mattermost/server/v8 (Go): from 8.0.0 before 8.0.4; from 8.1.0 before 8.1.3; from 9.0.0 before 9.0.1; before 8.0.0-20230825233148-f787fd63368a
- github.com/mattermost/mattermost-server/v5 (Go): before 5.3.2-0.20230825233148-f787fd63368a
- github.com/mattermost/mattermost-server (Go): before 5.3.2-0.20230825233148-f787fd63368a

## Every score

- Mattermost: 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`
- GitHub: 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`
- NVD: 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`

## References

- <https://mattermost.com/security-updates> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-5968> (advisory)
- <https://github.com/mattermost/mattermost/pull/24362> (web)
- <https://github.com/mattermost/mattermost/pull/24566> (web)
- <https://github.com/mattermost/mattermost/commit/698f4a97da564e2c1f2bf1fbd01755cefa3b7881> (web)
- <https://github.com/mattermost/mattermost> (package)

## Sources

- CVE List: [CVE-2023-5968](https://www.cve.org/CVERecord?id=CVE-2023-5968), CVE Terms of Use, modified 2024-09-12
- GitHub Advisory Database: [GHSA-r67m-mf7v-qp7j](https://github.com/advisories/GHSA-r67m-mf7v-qp7j), CC-BY-4.0, modified 2025-07-22
- NVD: [CVE-2023-5968](https://nvd.nist.gov/vuln/detail/CVE-2023-5968), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-5968 · Whole record: https://cve.day/CVE-2023-5968.json · Rebuilt by cve.day 2026-11-25T22:58:30.076Z
