CVE-2025-60040: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in fkrauthan wp-mpdf
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in fkrauthan wp-mpdf allows Stored XSS. This issue affects wp-mpdf: from n/a through 3.9.1.
AI Analysis
Technical Summary
CVE-2025-60040 is a stored Cross-site Scripting (XSS) vulnerability identified in the WordPress plugin 'wp-mpdf' developed by fkrauthan. The vulnerability arises due to improper neutralization of input during web page generation, classified under CWE-79. Specifically, the plugin fails to adequately sanitize or encode user-supplied input before rendering it in web pages, allowing malicious actors to inject and persist executable scripts within the application context. This stored XSS can be triggered when a victim accesses a compromised page, leading to the execution of arbitrary JavaScript in their browser. The affected versions include all versions up to 3.9.1, with no specific lower bound version identified. The vulnerability has a CVSS v3.1 base score of 6.5, indicating a medium severity level. The vector string (AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:L) indicates that the attack can be performed remotely over the network with low attack complexity, requires low privileges, and user interaction is necessary. The scope is changed, meaning the vulnerability affects components beyond the initially vulnerable component. The impact affects confidentiality, integrity, and availability to a limited extent. No patches or known exploits in the wild have been reported at the time of publication. The vulnerability is significant because wp-mpdf is a plugin used to generate PDF documents within WordPress sites, and exploitation could allow attackers to steal session cookies, perform actions on behalf of users, or deliver further payloads, potentially compromising site integrity and user trust.
Potential Impact
For European organizations using WordPress sites with the wp-mpdf plugin, this vulnerability poses a risk of client-side compromise through stored XSS attacks. Attackers could exploit this to hijack user sessions, steal sensitive information, or manipulate site content, which may lead to reputational damage, data breaches, or unauthorized actions within the affected web applications. Given the widespread use of WordPress across Europe, especially among SMEs and public sector websites, the impact could be significant if exploited at scale. The medium severity score suggests that while the vulnerability is not trivial, exploitation requires some user interaction and low privileges, limiting mass exploitation but still posing a threat to targeted users or administrators. Additionally, the scope change indicates potential for broader impact beyond the plugin itself, possibly affecting other integrated components or user roles. Organizations handling personal data under GDPR must consider the risk of data leakage or unauthorized access resulting from such XSS attacks, which could lead to regulatory penalties and loss of customer trust.
Mitigation Recommendations
1. Immediate mitigation should involve disabling or uninstalling the wp-mpdf plugin until a security patch is released. 2. Monitor official channels from the vendor fkrauthan and WordPress plugin repository for updates or patches addressing CVE-2025-60040. 3. Implement web application firewalls (WAFs) with rules to detect and block common XSS payloads targeting wp-mpdf endpoints. 4. Conduct thorough input validation and output encoding on all user-supplied data within the WordPress environment, especially for plugins handling document generation. 5. Educate site administrators and users to recognize suspicious links or inputs that could trigger XSS attacks. 6. Regularly audit WordPress plugins and themes for vulnerabilities and maintain an up-to-date inventory to prioritize patching. 7. Employ Content Security Policy (CSP) headers to restrict the execution of unauthorized scripts in browsers, mitigating the impact of XSS. 8. Review user privilege assignments to minimize the number of users with low privileges who can input data that might be rendered unsafely. 9. After patching, perform penetration testing focused on XSS to verify the vulnerability has been remediated.
Affected Countries
Germany, France, United Kingdom, Netherlands, Italy, Spain, Poland, Sweden
CVE-2025-60040: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in fkrauthan wp-mpdf
Description
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in fkrauthan wp-mpdf allows Stored XSS. This issue affects wp-mpdf: from n/a through 3.9.1.
AI-Powered Analysis
Technical Analysis
CVE-2025-60040 is a stored Cross-site Scripting (XSS) vulnerability identified in the WordPress plugin 'wp-mpdf' developed by fkrauthan. The vulnerability arises due to improper neutralization of input during web page generation, classified under CWE-79. Specifically, the plugin fails to adequately sanitize or encode user-supplied input before rendering it in web pages, allowing malicious actors to inject and persist executable scripts within the application context. This stored XSS can be triggered when a victim accesses a compromised page, leading to the execution of arbitrary JavaScript in their browser. The affected versions include all versions up to 3.9.1, with no specific lower bound version identified. The vulnerability has a CVSS v3.1 base score of 6.5, indicating a medium severity level. The vector string (AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:L) indicates that the attack can be performed remotely over the network with low attack complexity, requires low privileges, and user interaction is necessary. The scope is changed, meaning the vulnerability affects components beyond the initially vulnerable component. The impact affects confidentiality, integrity, and availability to a limited extent. No patches or known exploits in the wild have been reported at the time of publication. The vulnerability is significant because wp-mpdf is a plugin used to generate PDF documents within WordPress sites, and exploitation could allow attackers to steal session cookies, perform actions on behalf of users, or deliver further payloads, potentially compromising site integrity and user trust.
Potential Impact
For European organizations using WordPress sites with the wp-mpdf plugin, this vulnerability poses a risk of client-side compromise through stored XSS attacks. Attackers could exploit this to hijack user sessions, steal sensitive information, or manipulate site content, which may lead to reputational damage, data breaches, or unauthorized actions within the affected web applications. Given the widespread use of WordPress across Europe, especially among SMEs and public sector websites, the impact could be significant if exploited at scale. The medium severity score suggests that while the vulnerability is not trivial, exploitation requires some user interaction and low privileges, limiting mass exploitation but still posing a threat to targeted users or administrators. Additionally, the scope change indicates potential for broader impact beyond the plugin itself, possibly affecting other integrated components or user roles. Organizations handling personal data under GDPR must consider the risk of data leakage or unauthorized access resulting from such XSS attacks, which could lead to regulatory penalties and loss of customer trust.
Mitigation Recommendations
1. Immediate mitigation should involve disabling or uninstalling the wp-mpdf plugin until a security patch is released. 2. Monitor official channels from the vendor fkrauthan and WordPress plugin repository for updates or patches addressing CVE-2025-60040. 3. Implement web application firewalls (WAFs) with rules to detect and block common XSS payloads targeting wp-mpdf endpoints. 4. Conduct thorough input validation and output encoding on all user-supplied data within the WordPress environment, especially for plugins handling document generation. 5. Educate site administrators and users to recognize suspicious links or inputs that could trigger XSS attacks. 6. Regularly audit WordPress plugins and themes for vulnerabilities and maintain an up-to-date inventory to prioritize patching. 7. Employ Content Security Policy (CSP) headers to restrict the execution of unauthorized scripts in browsers, mitigating the impact of XSS. 8. Review user privilege assignments to minimize the number of users with low privileges who can input data that might be rendered unsafely. 9. After patching, perform penetration testing focused on XSS to verify the vulnerability has been remediated.
Affected Countries
For access to advanced analysis and higher rate limits, contact root@offseq.com
Technical Details
- Data Version
- 5.1
- Assigner Short Name
- Patchstack
- Date Reserved
- 2025-09-25T15:19:17.076Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 68d72b6379aa5c9d0854f4f3
Added to database: 9/27/2025, 12:10:11 AM
Last enriched: 10/4/2025, 12:34:59 AM
Last updated: 10/7/2025, 4:11:30 AM
Views: 31
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Related Threats
CVE-2025-27915: n/a
MediumCVE-2025-11349: SQL Injection in Campcodes Online Apartment Visitor Management System
MediumCVE-2025-11348: SQL Injection in Campcodes Online Apartment Visitor Management System
MediumCVE-2025-11347: Unrestricted Upload in code-projects Student Crud Operation
MediumISC Stormcast For Tuesday, October 7th, 2025 https://isc.sans.edu/podcastdetail/9644, (Tue, Oct 7th)
MediumActions
Updates to AI analysis are available only with a Pro account. Contact root@offseq.com for access.
External Links
Need enhanced features?
Contact root@offseq.com for Pro access with improved analysis and higher rate limits.