Skip to main content
← All vulnerabilities
CVE-2023-36459

Mastodon vulnerable to Cross-site Scripting through oEmbed preview cards

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.5.9, 4.0.5, 4.1.3
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: total

Summary

Mastodon is a free, open-source social network server based on ActivityPub. Starting in version 1.3 and prior to versions 3.5.9, 4.0.5, and 4.1.3, an attacker using carefully crafted oEmbed data can bypass the HTML sanitization performed by Mastodon and include arbitrary HTML in oEmbed preview cards. This introduces a vector for cross-site scripting (XSS) payloads that can be rendered in the user's browser when a preview card for a malicious link is clicked through. Versions 3.5.9, 4.0.5, and 4.1.3 contain a patch for this issue.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • mastodon mastodon

    From 1.3 · fixed in 3.5.9; From 4.0.0 · fixed in 4.0.5; From 4.1.0 · fixed in 4.1.3

References 6

GitHub · mastodon/mastodon

openwall.com