All vulnerabilities

Servers and applications

CVE-2023-42452

Stored XSS through the translation feature

Severity
Medium 5.4
Published
19 Sept 2023
Last changed
17 Jun 2026
Added to UpHeron
1 Nov 2026
Fixed in
4.0.10, 4.1.8
Also known as
GHSA-2693-xr3m-jhqr
Sources
NVD, Project advisories (GitHub)

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,…

Affected software

SoftwareAffected versions
MastodonServers and applications · cpe:a:joinmastodon:mastodon
  • From 4.0.0 before 4.0.10
  • From 4.1.0 before 4.1.8
  • Version 4.2.0-beta1
  • Version 4.2.0-beta2
  • Version 4.2.0-beta3
  • Version 4.2.0-rc1
MastodonServers and applications · github:mastodon/mastodon
  • From 4.0 before 4.0.10

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2023-42452
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2023-42452
  • GitHub Advisory Database https://github.com/advisories/GHSA-2693-xr3m-jhqr
  • github.com https://github.com/mastodon/mastodon/security/advisories/GHSA-2693-xr3m-jhqr