# CVE-2023-36459: Mastodon vulnerable to Cross-site Scripting through oEmbed preview cards

- Severity: Critical 9.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/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): 1.22%, higher than 69% of CVEs (2026-12-01)
- Published: 2023-07-06T18:29:07.669Z
- Modified: 2026-09-10T16:01:42.861Z
- Also known as: BIT-MASTODON-2023-36459, GHSA-ccm4-vgcc-73hp
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- mastodon mastodon: >= 1.3, < 3.5.9; >= 4.0.0, < 4.0.5; >= 4.1.0, < 4.1.3
- joinmastodon mastodon: from 1.3 before 3.5.9; from 4.0.0 before 4.0.5; from 4.1.0 before 4.1.3
- mastodon (Bitnami): from 1.3.0 before 3.5.9; from 4.0.0 before 4.0.5; from 4.1.0 before 4.1.3

## Every score

- GitHub_M: CVSS:3.1 9.3 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N`
- NVD: 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`
- Bitnami Vulnerability Database: rating Critical

## References

- <https://github.com/mastodon/mastodon/security/advisories/GHSA-ccm4-vgcc-73hp> (advisory, third-party-advisory)
- <https://github.com/mastodon/mastodon/commit/6d8e0fae3e96f3cf4febe03fa7fcf5b95ff761b2> (advisory, patch, third-party-advisory)
- <https://github.com/mastodon/mastodon/releases/tag/v3.5.9> (advisory, third-party-advisory)
- <https://github.com/mastodon/mastodon/releases/tag/v4.0.5> (advisory, third-party-advisory)
- <https://github.com/mastodon/mastodon/releases/tag/v4.1.3> (advisory, third-party-advisory)
- <http://www.openwall.com/lists/oss-security/2023/07/06/5> (discussion, mailing-list)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-36459> (web)

## Sources

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

---

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