title: Password hash in response body after username update
description: Mattermost fails to properly sanitize the user object when updating the username, resulting in the password hash being included in the response body.
problem types: CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
affected:
{
defaultStatus: unaffected
product: Mattermost
vendor: Mattermost
versions:
lessThanOrEqual: 7.8.11, status: affected, version: 0, versionType: semver
lessThanOrEqual: 8.0.3, status: affected, version: 0, versionType: semver
lessThanOrEqual: 8.1.2, status: affected, version: 0, versionType: semver
lessThanOrEqual: 9.0.0, status: affected, version: 0, versionType: semver
status: unaffected, version: 7.8.12
status: unaffected, version: 8.0.4
status: unaffected, version: 8.1.3
status: unaffected, version: 9.0.1
}
metrics:
cvssV3_1: [
attackComplexity: LOW
attackVector: NETWORK
availabilityImpact: NONE
baseScore: 4.9
baseSeverity: MEDIUM
confidentialityImpact: HIGH
integrityImpact: NONE
privilegesRequired: HIGH
scope: UNCHANGED
userInteraction: NONE
vectorString: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
version: 3.1
]
format: CVSS
scenarios: GENERAL
solutions: Update Mattermost Server to versions 7.8.12, 8.0.4, 8.1.3, 9.0.1 or higher.