CVE-2023-36459 json
Mastodon vulnerable to Cross-site Scripting through oEmbed preview cards
published 3y ago modified 2mo ago also BIT-mastodon-2023-36459 , EUVD-2023-40421 , GHSA-ccm4-vgcc-73hp
- cvss
- 9.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.2%
- EPSS 1.2% chance of exploitation in 30 days, percentile 69%
- public exploits
- 0
- none known
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.
Patch / fix
- bitnami mastodon 3.5.9, 4.0.5, 4.1.3
- joinmastodon mastodon 3.5.9, 4.0.5, 4.1.3
Is CVE-2023-36459 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 2y ago
Exploit prediction
1.22% chance of exploitation in the next 30 days, higher than 69% of all scored CVEs (FIRST EPSS, 2026-11-15).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 9.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N |
| NVD | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | 3.1 | 9.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| bitnami | mastodon | >=1.3.0, <3.5.9 >=4.0.0, <4.0.5 >=4.1.0, <4.1.3 |
3.5.9 4.0.5 4.1.3 |
Affected products
- mastodon mastodon
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
github.com
/mastodon/mastodon/commit/6d8e0fae3e96f3cf4febe03fa7fcf5b95ff761b2
patch, third-party-advisory, advisory
-
github.com
/mastodon/mastodon/security/advisories/GHSA-ccm4-vgcc-73hp
third-party-advisory, advisory
-
github.com
/mastodon/mastodon/releases/tag/v3.5.9
third-party-advisory, advisory
-
github.com
/mastodon/mastodon/releases/tag/v4.0.5
third-party-advisory, advisory
-
github.com
/mastodon/mastodon/releases/tag/v4.1.3
third-party-advisory, advisory
-
openwall.com
/lists/oss-security/2023/07/06/5
mailing-list, discussion
-
nvd.nist.gov
/vuln/detail/CVE-2023-36459
web
Sources
- CVE List CVE-2023-36459
- NVD CVE-2023-36459
- OSV BIT-mastodon-2023-36459
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.