Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/mattermost/mattermost/server/v8
  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 starting from 8.0.0 before 8.0.4, all versions starting from 8.1.0 before 8.1.3, all versions starting from 9.0.0 before 9.0.1, version 9.0.0

Fixed versions

  • 8.0.4
  • 8.1.3
  • 9.0.1

Solution

Upgrade to versions 8.0.4, 8.1.3, 9.0.1 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/v8/CVE-2023-5968.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Thu, 08 Jan 2026 12:19:30 +0000.