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.
Problem types
CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Product status
References
github.com/.../plate/security/advisories/GHSA-qj6x-xx2h-8hvv
github.com/.../plate/security/advisories/GHSA-qj6x-xx2h-8hvv
github.com/udecode/plate/pull/5014
github.com/...ommit/6214914ca811adf22d0ad503154494216eed68ba
github.com/udecode/plate/releases/tag/v53.1.4