CVE-2023-42452
published medium CVSS 3.1 · 6.1Mastodon vulnerable to Stored XSS through the translation feature
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| mastodon | — | mastodon>= 4.0.0, < 4.0.10 · >= 4.1.0, < 4.1.8 · >= 4.2.0-beta1, < 4.2.0-rc2 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.1 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| mastodon | mastodon | >= 4.0.0, < 4.0.10 (affected)>= 4.1.0, < 4.1.8 (affected)>= 4.2.0-beta1, < 4.2.0-rc2 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-79 CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
References
2Provider assertions
3GitHub_M · cna
Mastodon vulnerable to Stored XSS through the translation feature
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 38194fb0a1bfec46bd543084d24565614b8f2dac779a3a63256fd050da6754d3
- Ingested
- 23 Sep 2026, 08:11:47 UTC
- Source record
- Official CVE record