Skip to content
Heist/ feed
Back to feed
Medium

Password hash in response body after username update

Type: advisorySources: OSV

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

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2023-5968
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 16:54 UTC · Revision 1

Source evidence

Password hash in response body after username update

core-osv · Original source

Published 6 Nov 2023, 15:35 UTC

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

osv:CVE-2023-5968
Complete source record
{
  "id": "e87797eea601e4ec726b2817493e977d70e3caaf75cf39157cd5b9490d3c3f92",
  "url": "https://osv.dev/vulnerability/CVE-2023-5968",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Password hash in response body after username update",
    "summary": "Mattermost fails to properly sanitize the user object when updating the username, resulting in the password hash being included in the response body.",
    "evidence": "osv:CVE-2023-5968",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2023-5968",
      "aliases": [
        "CVE-2023-5968",
        "GHSA-r67m-mf7v-qp7j"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/mattermost/mattermost",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "58a74d76295680a5bb684f795e21970ab53fee1d"
                },
                {
                  "introduced": "90f502dc2dc80ee25cfb7d7bc3e743b53564a5a7"
                },
                {
                  "last_affected": "ce6e98b51cbf6fb688b0a453b05634ddd0d00085"
                },
                {
                  "introduced": "096c9ea12a2144f832e330e9a0f4d3862ca20b9f"
                },
                {
                  "last_affected": "9d2d03594f2ebca50ae47161ab9a22059f751fb8"
                },
                {
                  "introduced": "987e843629fe3f11861fda23ceb66884f5973ef1"
                },
                {
                  "last_affected": "987e843629fe3f11861fda23ceb66884f5973ef1"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:mattermost:mattermost:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "7.8.11"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:mattermost:mattermost:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "8.0.0"
                      },
                      {
                        "last_affected": "8.0.3"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:mattermost:mattermost:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "8.1.0"
                      },
                      {
                        "last_affected": "8.1.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:mattermost:mattermost:9.0.0:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "9.0.0"
                      },
                      {
                        "last_affected": "9.0.0"
                      }
                    ],
                    "source": "CPE_STRING"
                  }
                ]
              }
            }
          ],
          "versions": [
            "9.0.0",
            "v9.0.0-rc2",
            "v9.0.0",
            "@mattermost/types@9.0.0",
            "@mattermost/client@9.0.0",
            "v8.0.3-rc1",
            "v8.0.3",
            "v8.1.2-rc2",
            "v8.1.2",
            "v7.8.11-rc1",
            "v7.8.11",
            "v8.1.2-rc1",
            "v8.0.2-rc3",
            "v8.0.2",
            "@mattermost/types@8.0.0",
            "@mattermost/client@8.0.0",
            "v7.8.10-rc5",
            "v7.8.10",
            "v8.1.1-rc2",
            "v8.1.1",
            "@mattermost/types@8.1.1",
            "@mattermost/client@8.1.1",
            "v7.8.10-rc4",
            "v8.0.2-rc2",
            "v8.1.1-rc1",
            "v7.8.10-rc3",
            "v8.1.0-rc2",
            "v8.1.0",
            "v7.8.9",
            "v8.0.1",
            "v8.0.0",
            "v7.8.8",
            "v7.8.7",
            "v7.8.6",
            "v7.8.5",
            "v7.8.4",
            "v7.8.3",
            "v7.8.2",
            "v7.8.1",
            "v7.8.0",
            "cloud-2023-01-26-1",
            "cloud-2022-11-24-1",
            "cloud-2022-11-11-1",
            "cloud-2022-10-06-1",
            "cloud-2022-09-08-1",
            "cloud-2022-08-10-1",
            "cloud-2022-07-20-1",
            "v5.2.0-rc2",
            "v5.2.0-rc1",
            "v5.1.0-rc1",
            "v5.0.0-rc1",
            "v4.10.0-rc1",
            "v4.9.0-rc1",
            "v4.8.0-rc1",
            "v4.7.0-rc1",
            "v4.6.0-rc2",
            "v4.6.0-rc1",
            "v4.5.0-rc1",
            "v4.4.0-rc1",
            "v4.3.0-rc1",
            "v4.2.0-rc1",
            "v0.5.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-5968.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:37.643548296Z",
      "provider": "osv",
      "references": [
        "https://mattermost.com/security-updates",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/5xxx/CVE-2023-5968.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2023-5968"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-200"
        ],
        "cna_assigner": "Mattermost",
        "unresolved_ranges": [
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "last_affected": "7.8.11"
                  },
                  {
                    "last_affected": "8.0.3"
                  },
                  {
                    "last_affected": "8.1.2"
                  },
                  {
                    "last_affected": "9.0.0"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              }
            ]
          }
        ],
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/5xxx/CVE-2023-5968.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2023-5968",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 504973,
  "published_at": "2023-11-06T15:35:14.094+00:00"
}