Read the docs

OEmbed embed tags allowed in Mastodon HTML sanitization

Priority LOW 38Published · Updated

Key facts

Attack vector
—
Privileges required
—
User interaction
—
Attack complexity
—
Impact type
—
Confidentiality · integrity · availability
—
Fix status
Fixed

No CVSS vector from any source. Fix status from GitHub.

Summary

Mastodon's HTML sanitization configuration for OEmbed embeds allows embed tags, which cannot be sandboxed the way iframe tags can. The flaw could let a remote attacker embed OEmbeds that perform top level navigation, enabling phishing, but Content Security Policy with object-src 'none' effectively prevents the embed tag from working. Exploitation would be possible only if the reverse proxy is severely misconfigured.

Written with Claude Haiku 5.5 from the sources below · 2026-11-12

Description from the GitHub advisory

### Summary Mastodon's HTML sanitization configuration for OEmbed embeds allow `<embed>` tags, which cannot be sandboxed, unlike `<iframe>` ### Details https://github.com/mastodon/mastodon/blob/1cf30717dbe7a0038a645c62f19deef7efc42207/lib/sanitize_ext/sanitize_config.rb#L133-L153 This vulnerability is effectively prevented by Content Security Policy (`object-src 'none'` effectively prevents `<embed>` tag from working at all), but could be exploitable in case the reverse proxy is severely misconfigured. ### Impact In theory this vulnerability would allow embedding OEmbeds that do top level navigation, enabling phishing attacks. However, `object-src 'none'` effectively prevents the vulnerability.

Why it matters now

Fix Fixed mastodon: 4.3.4, 4.2.16, 4.1.23

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—mastodon< 4.3.44.3.4, 4.2.16, 4.1.23Patch availableGHSA-mq2m-hr29-8gqf
  • mastodon Vendor— Affected < 4.3.4 Fixed in 4.3.4, 4.2.16, 4.1.23 Patch available GHSA-mq2m-hr29-8gqf

Remediation

Upgrade Mastodon to version 4.3.4, 4.2.16, or 4.1.23, which fix the issue.

Written with Claude Haiku 5.5 from the sources below · 2026-11-12

  • Fix · GHSA-mq2m-hr29-8gqf mastodon Fixed in 4.3.4, 4.2.16, 4.1.23 Advisory →

Timeline

  1. 2026-11-12 Threatist record created from GHSA-mq2m-hr29-8gqf

References

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences