title: Path traversal in GitHub plugin's code preview feature
description: Mattermost fails to sanitize code permalinks, allowing an attacker to preview code from private repositories by posting a specially crafted permalink on a channel.
problem types: CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
affected:
{
defaultStatus: unaffected
product: Mattermost Github Plugin
vendor: Mattermost
versions:
lessThanOrEqual: 7.1.9, status: affected, version: 0, versionType: semver
lessThanOrEqual: 7.8.4, status: affected, version: 0, versionType: semver
status: unaffected, version: 7.1.10
status: unaffected, version: 7.8.5
status: affected, version: 7.10.0
status: unaffected, version: 7.10.1
}
metrics:
cvssV3_1: [
attackComplexity: HIGH
attackVector: NETWORK
availabilityImpact: NONE
baseScore: 3.1
baseSeverity: LOW
confidentialityImpact: LOW
integrityImpact: NONE
privilegesRequired: LOW
scope: UNCHANGED
userInteraction: NONE
vectorString: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N
version: 3.1
]
format: CVSS
scenarios: GENERAL
solutions: Update Mattermost to version v7.1.10, v7.8.5, v7.10.1 or higher.