# CVE-2023-42452: Mastodon vulnerable to Stored XSS through the translation feature

- Severity: Medium 6.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.44%, higher than 39% of CVEs (2026-12-02)
- Published: 2023-09-19T15:58:44.559Z
- Modified: 2026-09-08T08:48:13.168Z
- Also known as: BIT-MASTODON-2023-42452, GHSA-2693-xr3m-jhqr
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- mastodon mastodon: >= 4.0.0, < 4.0.10; >= 4.1.0, < 4.1.8; >= 4.2.0-beta1, < 4.2.0-rc2
- joinmastodon mastodon: from 4.0.0 before 4.0.10; from 4.1.0 before 4.1.8; 4.2.0
- mastodon (Bitnami): from 4.0.0 before 4.0.10; from 4.1.0 before 4.1.8

## Every score

- GitHub_M: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://github.com/mastodon/mastodon/security/advisories/GHSA-2693-xr3m-jhqr> (advisory, vendor-advisory)
- <https://github.com/mastodon/mastodon/commit/ff32475f5f4a84ebf9619e7eef5bf8b4c075d0e2> (fix, patch)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-42452> (web)

## Sources

- CVE List: [CVE-2023-42452](https://www.cve.org/CVERecord?id=CVE-2023-42452), CVE Terms of Use, modified 2024-09-24
- NVD: [CVE-2023-42452](https://nvd.nist.gov/vuln/detail/CVE-2023-42452), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-MASTODON-2023-42452](https://osv.dev/vulnerability/BIT-MASTODON-2023-42452), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2023-42452 · Whole record: https://cve.day/CVE-2023-42452.json · Rebuilt by cve.day 2026-11-25T22:58:27.996Z
