Skip to main content

CVE-2025-5314: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in dearhive Dear Flipbook – PDF Flipbook, 3D Flipbook, PDF embed, PDF viewer

Medium
VulnerabilityCVE-2025-5314cvecve-2025-5314cwe-79
Published: Tue Jul 01 2025 (07/01/2025, 11:27:12 UTC)
Source: CVE Database V5
Vendor/Project: dearhive
Product: Dear Flipbook – PDF Flipbook, 3D Flipbook, PDF embed, PDF viewer

Description

The Dear Flipbook – PDF Flipbook, 3D Flipbook, PDF embed, PDF viewer plugin for WordPress is vulnerable to DOM-Based Reflected Cross-Site Scripting via the ‘pdf-source’ parameter in all versions up to, and including, 2.3.65 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that execute if they can successfully trick a user into performing an action such as clicking on a link.

AI-Powered Analysis

AILast updated: 07/01/2025, 11:54:32 UTC

Technical Analysis

CVE-2025-5314 is a DOM-Based Reflected Cross-Site Scripting (XSS) vulnerability affecting the Dear Flipbook – PDF Flipbook, 3D Flipbook, PDF embed, PDF viewer WordPress plugin developed by dearhive. This vulnerability exists in all versions up to and including 2.3.65 due to improper neutralization of user input in the 'pdf-source' parameter. Specifically, the plugin fails to adequately sanitize and escape input before incorporating it into web pages, allowing unauthenticated attackers to inject arbitrary JavaScript code. The attack vector involves tricking a user into clicking a crafted link containing malicious script code embedded in the 'pdf-source' parameter. When the victim visits the manipulated page, the injected script executes in their browser context. This can lead to session hijacking, defacement, or redirection to malicious sites. The vulnerability is classified under CWE-79, indicating improper input validation during web page generation. The CVSS 3.1 base score is 6.1 (medium severity), reflecting that the attack requires no privileges (AV:N/AC:L/PR:N) but does require user interaction (UI:R). The scope is changed (S:C), meaning the vulnerability affects components beyond the vulnerable plugin itself. Confidentiality and integrity impacts are low, and availability is not affected. No known exploits are currently reported in the wild. The vulnerability was published on July 1, 2025, with the initial reservation on May 29, 2025. No patches or fixes have been linked yet, so users of the plugin should be cautious and monitor for updates.

Potential Impact

For European organizations using WordPress sites with the Dear Flipbook plugin, this vulnerability poses a risk of client-side attacks that can compromise user sessions and data integrity. Attackers could exploit the vulnerability to steal authentication tokens or perform actions on behalf of users, potentially leading to unauthorized access or data leakage. Although the impact on server availability is negligible, the reputational damage and potential regulatory consequences under GDPR for failing to protect user data could be significant. Organizations with customer-facing websites or intranet portals using this plugin are particularly at risk. The vulnerability is exploitable without authentication but requires user interaction, so phishing or social engineering campaigns could be used to trigger the attack. The medium severity rating suggests that while the risk is not critical, it should be addressed promptly to prevent exploitation, especially in sectors handling sensitive information such as finance, healthcare, and government services.

Mitigation Recommendations

1. Immediate mitigation involves disabling or removing the Dear Flipbook plugin until a secure patched version is released. 2. Monitor the vendor's official channels and WordPress plugin repository for updates or security patches addressing CVE-2025-5314. 3. Implement Web Application Firewall (WAF) rules to detect and block suspicious requests containing malicious payloads in the 'pdf-source' parameter. 4. Educate users and administrators about the risks of clicking on untrusted links, especially those purporting to reference PDF content on affected sites. 5. Conduct regular security audits and vulnerability scans on WordPress installations to identify vulnerable plugins. 6. Employ Content Security Policy (CSP) headers to restrict the execution of unauthorized scripts on web pages. 7. Review and harden input validation and output encoding practices in custom plugins or themes to prevent similar issues. 8. Consider isolating or sandboxing PDF viewer functionality to limit the impact of potential script execution.

Need more detailed analysis?Get Pro

Technical Details

Data Version
5.1
Assigner Short Name
Wordfence
Date Reserved
2025-05-29T00:24:17.468Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 6863c9006f40f0eb728f0ee4

Added to database: 7/1/2025, 11:39:44 AM

Last enriched: 7/1/2025, 11:54:32 AM

Last updated: 7/1/2025, 2:09:26 PM

Views: 3

Actions

PRO

Updates to AI analysis are available only with a Pro account. Contact root@offseq.com for access.

Please log in to the Console to use AI analysis features.

Need enhanced features?

Contact root@offseq.com for Pro access with improved analysis and higher rate limits.

Latest Threats