Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/mattermost/mattermost-server/v5
  4. ›
  5. CVE-2023-5968

CVE-2023-5968: Mattermost password hash disclosure vulnerability

November 6, 2023 (updated July 22, 2025)

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

References

  • github.com/advisories/GHSA-r67m-mf7v-qp7j
  • github.com/mattermost/mattermost
  • github.com/mattermost/mattermost/commit/698f4a97da564e2c1f2bf1fbd01755cefa3b7881
  • github.com/mattermost/mattermost/pull/24362
  • github.com/mattermost/mattermost/pull/24566
  • mattermost.com/security-updates
  • nvd.nist.gov/vuln/detail/CVE-2023-5968

Code Behaviors & Features

Detect and mitigate CVE-2023-5968 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 5.3.2-0.20230825233148-f787fd63368a

Fixed versions

  • 5.3.2-0.20230825233148-f787fd63368a

Solution

Upgrade to version 5.3.2-0.20230825233148-f787fd63368a or above.

Impact 4.9 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-116: Improper Encoding or Escaping of Output
  • CWE-200: Exposure of Sensitive Information to an Unauthorized Actor

Source file

go/github.com/mattermost/mattermost-server/v5/CVE-2023-5968.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 19 Aug 2025 12:18:18 +0000.