Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2025-5289 Overview
CVE-2025-5289 is a stored Cross-Site Scripting (XSS) vulnerability [CWE-79] affecting the 3D FlipBook – PDF Embedder, PDF Flipbook Viewer, Flipbook Image Gallery plugin for WordPress. The flaw exists in all versions up to and including 1.16.15 and stems from insufficient input sanitization and output escaping on the style and mode shortcode parameters. Authenticated users with Contributor-level access or above can inject arbitrary JavaScript into pages. The injected script executes in the browser of any visitor viewing the affected page. The issue only affects sites using block-based themes.
Critical Impact
Contributor-level accounts can plant persistent JavaScript that runs in visitor and administrator browsers, enabling session theft, account takeover, and drive-by redirection on block-themed WordPress sites.
Affected Products
- 3dflipbook 3D FlipBook WordPress plugin, all versions through 1.16.15
- WordPress sites using block-based themes with the plugin installed
- Sites permitting Contributor-level or higher accounts to publish content containing the plugin shortcode
Discovery Timeline
- 2025-06-21 - CVE-2025-5289 published to NVD
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2025-5289
Vulnerability Analysis
The vulnerability resides in the plugin's shortcode handler, which processes the style and mode attributes supplied through the [3d-flip-book] shortcode. The handler emits these attribute values into rendered page output without applying sufficient sanitization or context-aware escaping. When a Contributor or higher-privileged user embeds the shortcode with a malicious style or mode value, the payload is stored in post content and served to every visitor who loads the page.
The stored nature of the flaw makes it more impactful than reflected XSS. A single malicious post persists in the database and executes JavaScript in the browser of every viewer, including administrators. Attackers can leverage this to hijack authenticated sessions, perform actions in the administrator context, exfiltrate cookies, or redirect visitors to attacker-controlled infrastructure.
The vulnerability is scoped to block-based themes because the vulnerable rendering path is only reached in that theming context. Classic-theme installations do not process the affected code path.
Root Cause
The root cause is missing sanitization on the style and mode shortcode attributes in the plugin's shortcode implementation (see inc/shortcode.php around lines 130 and 134). The handler concatenates untrusted user input directly into HTML output without calling WordPress escaping functions such as esc_attr() or esc_html() for the appropriate output context.
Attack Vector
Exploitation requires an authenticated account with Contributor-level access or higher. The attacker creates or edits a post containing the plugin's shortcode with a crafted style or mode parameter carrying an XSS payload. Once the post is viewed, the stored script executes in the victim's browser session. User interaction is required in the form of visiting the affected page. See the Wordfence Vulnerability Report for additional analysis.
// No verified proof-of-concept code is available.
// The vulnerability is triggered by injecting a script payload
// into the 'style' or 'mode' attribute of the plugin shortcode
// when using a block-based theme.
Detection Methods for CVE-2025-5289
Indicators of Compromise
- Post or page content containing the plugin shortcode with unusual values in the style or mode attributes, particularly values containing <script>, javascript:, or HTML event handlers such as onerror and onload.
- Unexpected outbound requests from visitor browsers to unfamiliar domains following page loads that render the 3D FlipBook shortcode.
- Newly created or modified Contributor accounts publishing posts that embed the plugin shortcode.
Detection Strategies
- Audit the WordPress wp_posts table for shortcode instances referencing the 3D FlipBook plugin and inspect the style and mode attribute values for script content.
- Monitor web server access logs for anomalous requests originating from pages that include the plugin shortcode.
- Review WordPress user activity for Contributor-role accounts that publish or edit content containing the vulnerable shortcode.
Monitoring Recommendations
- Enable a WordPress activity log plugin to record post creation and edits performed by Contributor and Author roles.
- Deploy a Content Security Policy (CSP) with strict script-src directives to detect and block inline script execution attempts.
- Configure a web application firewall to flag shortcode attribute values containing HTML tags or JavaScript URI schemes.
How to Mitigate CVE-2025-5289
Immediate Actions Required
- Update the 3D FlipBook plugin to a version later than 1.16.15 that includes the fix from WordPress Changeset #3315198.
- Review all existing posts and pages containing the plugin shortcode and remove any payloads found in style or mode attributes.
- Audit and restrict Contributor-level accounts, removing any that are unnecessary or appear compromised.
Patch Information
The vendor addressed the issue in the plugin update tracked by WordPress Changeset #3315198. Site administrators should upgrade through the WordPress plugin manager or download the latest release from the WordPress plugin repository. Verify the installed version is greater than 1.16.15 after the update completes.
Workarounds
- If immediate patching is not possible, switch temporarily to a classic (non-block-based) theme, since the vulnerable code path only affects block-based themes.
- Deactivate the 3D FlipBook plugin until the update can be applied.
- Restrict Contributor and Author roles from using the shortcode by removing the plugin's shortcode registration or by using a role-management plugin to constrain HTML in posts.
# Verify plugin version via WP-CLI and update to the patched release
wp plugin get interactive-3d-flipbook-powered-physics-engine --field=version
wp plugin update interactive-3d-flipbook-powered-physics-engine
# Optionally deactivate the plugin until patched
wp plugin deactivate interactive-3d-flipbook-powered-physics-engine
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

