Plate: Media embed provider metadata can bypass URL sanitization and execute iframe JavaScript
udecode plate
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| @platejs/media npm |
|
|
Original description
Plate is a rich-text editor with AI and shadcn/ui. From 53.0.0 until 53.1.4, the media embed renderer trusts serialized provider or sourceUrl metadata in useMediaState and skips parseMediaUrl protocol validation, allowing a crafted Plate document to set a known video provider while keeping url as a javascript: iframe source that the registry MediaEmbedElement renders directly as an iframe src when a victim opens the document. This issue is fixed in version 53.1.4.
From the CVE record · GitHub_M