- Description
- Mastodon is a free, open-source social network server based on ActivityPub. In versions on the 4.x branch prior to versions 4.0.10, 4.2.8, and 4.2.0-rc2, under certain conditions, attackers can abuse the translation feature to bypass the server-side HTML sanitization, allowing unescaped HTML to execute in the browser. The impact is limited thanks to Mastodon's strict Content Security Policy, blocking inline scripts, etc. However a CSP bypass or loophole could be exploited to execute malicious XSS. Furthermore, it requires user interaction, as this can only occur upon clicking the “Translate” button on a malicious post. Versions 4.0.10, 4.2.8, and 4.2.0-rc2 contain a patch for this issue.
- Source
- security-advisories@github.com
- NVD status
- Analyzed
CVSS 3.1
- Type
- Primary
- Base score
- 5.4
- Impact score
- 2.7
- Exploitability score
- 2.3
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
- Severity
- MEDIUM
- security-advisories@github.com
- CWE-79
- Hype score
- Not currently trending
[
{
"nodes": [
{
"negate": false,
"cpeMatch": [
{
"criteria": "cpe:2.3:a:joinmastodon:mastodon:*:*:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "98C89C5A-7235-4260-8656-CA90DB36CC96",
"versionEndExcluding": "4.0.10",
"versionStartIncluding": "4.0.0"
},
{
"criteria": "cpe:2.3:a:joinmastodon:mastodon:*:*:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "E58F736C-6245-4EF4-AE4D-FB6AA20F0D7B",
"versionEndExcluding": "4.1.8",
"versionStartIncluding": "4.1.0"
},
{
"criteria": "cpe:2.3:a:joinmastodon:mastodon:4.2.0:beta1:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "D76FF8DD-B11D-4119-9B4E-32CE8365A25B"
},
{
"criteria": "cpe:2.3:a:joinmastodon:mastodon:4.2.0:beta2:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "19DC8A22-E8EF-4FAB-B60E-64FE54AE0968"
},
{
"criteria": "cpe:2.3:a:joinmastodon:mastodon:4.2.0:beta3:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "1406EB6A-186B-4A9C-95F6-5EC509867C3C"
},
{
"criteria": "cpe:2.3:a:joinmastodon:mastodon:4.2.0:rc1:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "089015EE-D7E4-4370-B1ED-52283B06FF0A"
}
],
"operator": "OR"
}
]
}
]