Executive brief
EmbedPress, a WordPress plugin used to embed multimedia content like PDFs and YouTube videos, contains a security flaw that allows users with contributor-level access or higher to inject malicious scripts into website pages. When other users or administrators visit these compromised pages, the scripts execute automatically in their browsers. This could lead to unauthorized actions being performed on behalf of site visitors or the theft of sensitive session information.
Technical details
The EmbedPress plugin for WordPress is vulnerable to Stored Cross-Site Scripting (XSS) due to insufficient input sanitization and output escaping on the 'url' attribute within its Gutenberg blocks. This vulnerability allows authenticated attackers with contributor-level permissions or higher to inject arbitrary web scripts into the database. These scripts are then executed in the context of any user's browser who views the affected page. The flaw is present in all versions up to and including 4.5.3. A patch has been released in subsequent versions to address the sanitization issues in EmbedPressBlockRenderer.php and Helper.php.
Affected products
- WPDeveloper EmbedPress up to, and including, 4.5.3
Timeline
- 2026-06-06: disclosed
- 2026-06-06: advisory
References
- https://plugins.trac.wordpress.org/browser/embedpress/tags/4.4.11/EmbedPress/Gutenberg/EmbedPressBlockRenderer.php
- https://plugins.trac.wordpress.org/browser/embedpress/tags/4.4.11/EmbedPress/Gutenberg/EmbedPressBlockRenderer.php
- https://plugins.trac.wordpress.org/browser/embedpress/tags/4.4.11/EmbedPress/Includes/Classes/Helper.php
- https://plugins.trac.wordpress.org/browser/embedpress/tags/4.5.1/EmbedPress/Gutenberg/EmbedPressBlockRenderer.php
- https://plugins.trac.wordpress.org/browser/embedpress/tags/4.5.1/EmbedPress/Gutenberg/EmbedPressBlockRenderer.php
- https://plugins.trac.wordpress.org/browser/embedpress/tags/4.5.1/EmbedPress/Includes/Classes/Helper.php
- https://plugins.trac.wordpress.org/browser/embedpress/trunk/EmbedPress/Gutenberg/EmbedPressBlockRenderer.php