Cross-site scripting through serialized Markdown link content
Description
Impact
Applications that serialize untrusted editor content with @platejs/markdown and render the resulting Markdown with raw HTML enabled can interpret link content as markup, allowing cross-site scripting. Exposure depends on the downstream Markdown renderer and its sanitization policy. Severity: moderate.
Fix and mitigation
Upgrade @platejs/markdown to 53.3.12 or later.
Until upgraded, disable raw HTML in downstream Markdown rendering or sanitize rendered HTML with an appropriate maintained sanitizer before displaying untrusted content.