CVE-2023-42452
CVE-2023-42452 is a medium-severity vulnerability in Joinmastodon Mastodon with a CVSS 3.x base score of 6.1. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-79.
Key facts
- Severity: Medium (CVSS 3.x base score 6.1)
- EPSS exploit prediction: 0% (31st percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-79
- Affected product: Joinmastodon Mastodon
- Published:
- Last modified:
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.
Frequently asked questions
- What is CVE-2023-42452?
- 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.
- How severe is CVE-2023-42452?
- CVE-2023-42452 has a CVSS 3.x base score of 6.1, rated medium severity. It is exploitable over network with low attack complexity, requires no privileges and user interaction. Impact on confidentiality is low, integrity low, and availability none.
- Is CVE-2023-42452 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (31st percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2023-42452?
- CVE-2023-42452 primarily affects Joinmastodon Mastodon. In total, 5 product configurations (CPEs) are listed as vulnerable; see the affected-products list for the exact versions.
- How do I fix CVE-2023-42452?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
- When was CVE-2023-42452 published?
- CVE-2023-42452 was published on 2023-09-19 and last updated on 2026-06-17.
References
- https://github.com/mastodon/mastodon/commit/ff32475f5f4a84ebf9619e7eef5bf8b4c075d0e2
- https://github.com/mastodon/mastodon/security/advisories/GHSA-2693-xr3m-jhqr
Affected products (5)
- cpe:2.3:a:joinmastodon:mastodon:*:*:*:*:*:*:*:*
- cpe:2.3:a:joinmastodon:mastodon:4.2.0:beta1:*:*:*:*:*:*
- cpe:2.3:a:joinmastodon:mastodon:4.2.0:beta2:*:*:*:*:*:*
- cpe:2.3:a:joinmastodon:mastodon:4.2.0:beta3:*:*:*:*:*:*
- cpe:2.3:a:joinmastodon:mastodon:4.2.0:rc1:*:*:*:*:*:*
More vulnerabilities in Joinmastodon Mastodon
- CVE-2023-36460 — Critical (CVSS 9.9): Mastodon is a free, open-source social network server based on ActivityPub. Starting in version 3.5.0 and prior to…
- CVE-2022-2166 — Critical (CVSS 9.8): Improper Restriction of Excessive Authentication Attempts in GitHub repository mastodon/mastodon prior to 4.0.0.
- CVE-2022-24307 — Critical (CVSS 9.8): Mastodon before 3.3.2 and 3.4.x before 3.4.6 has incorrect access control because it does not compact incoming signed…
- CVE-2018-21018 — Critical (CVSS 9.8): Mastodon before 2.6.3 mishandles timeouts of incompletely established sessions.
- CVE-2024-23832 — Critical (CVSS 9.4): Mastodon is a free, open-source social network server based on ActivityPub Mastodon allows configuration of LDAP for…
- CVE-2023-36459 — Critical (CVSS 9.3): Mastodon is a free, open-source social network server based on ActivityPub. Starting in version 1.3 and prior to…
All CVEs affecting Joinmastodon Mastodon →
Other CWE-79 (Cross-site Scripting (XSS)) vulnerabilities
- CVE-2025-49410 — Critical (CVSS 10.0): Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in Imran Emu TC…
- CVE-2024-47875 — Critical (CVSS 10.0): DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. DOMpurify was vulnerable to…
- CVE-2024-6886 — Critical (CVSS 10.0): Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting') vulnerability in Gitea…
- CVE-2023-45144 — Critical (CVSS 10.0): com.xwiki.identity-oauth:identity-oauth-ui is a package to aid in building identity and service providers based on…
- CVE-2023-45138 — Critical (CVSS 10.0): Change Request is an pplication allowing users to request changes on a wiki without publishing the changes directly.…
- CVE-2022-4361 — Critical (CVSS 10.0): Keycloak, an open-source identity and access management solution, has a cross-site scripting (XSS) vulnerability in the…
Browse all CWE-79 (Cross-site Scripting (XSS)) vulnerabilities →