CVE-2025-8397: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in restpack Save as PDF Button
The Save as PDF Button plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's restpackpdfbutton shortcode in all versions up to, and including, 1.9.2 due to insufficient input sanitization and output escaping on user supplied attributes. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
AI Analysis
Technical Summary
CVE-2025-8397 is a stored cross-site scripting (XSS) vulnerability identified in the 'Save as PDF Button' WordPress plugin developed by restpack. This vulnerability arises from improper neutralization of input during web page generation (CWE-79), specifically due to insufficient sanitization and escaping of user-supplied attributes in the plugin's shortcode 'restpackpdfbutton'. The flaw affects all versions up to and including 1.9.2. An attacker with contributor-level or higher privileges can exploit this vulnerability by injecting arbitrary JavaScript code into pages or posts via the shortcode attributes. Because the malicious script is stored persistently, it executes every time a user accesses the compromised page, potentially allowing session hijacking, defacement, or unauthorized actions within the context of the victim's browser session. The vulnerability has a CVSS 3.1 base score of 6.4, reflecting medium severity, with an attack vector of network, low attack complexity, privileges required at the contributor level, no user interaction needed, and a scope change indicating that the vulnerability affects components beyond the initially vulnerable plugin. The impact primarily affects confidentiality and integrity, with no direct availability impact. No public exploits have been reported yet, but the vulnerability's nature and ease of exploitation by authenticated users make it a significant risk for WordPress sites using this plugin. The vulnerability was published on November 13, 2025, with no patch currently available, emphasizing the need for interim mitigations.
Potential Impact
For European organizations, this vulnerability poses a risk to the confidentiality and integrity of web content and user sessions on WordPress sites using the 'Save as PDF Button' plugin. Attackers with contributor-level access can inject malicious scripts that execute in the browsers of site visitors and administrators, potentially leading to session hijacking, unauthorized actions, or data theft. This can damage organizational reputation, lead to data breaches involving personal or sensitive information, and disrupt trust in digital services. Given the widespread use of WordPress across Europe for corporate, governmental, and media websites, the vulnerability could affect a broad range of sectors including public administration, media, education, and e-commerce. The requirement for contributor-level access somewhat limits the attack surface but does not eliminate risk, especially in environments with many content editors or where account compromise is possible. The absence of known exploits in the wild currently reduces immediate risk but does not preclude future exploitation. The vulnerability's impact is heightened in organizations with high user interaction on WordPress sites and where the plugin is actively used to generate PDF content.
Mitigation Recommendations
1. Monitor the vendor's announcements for an official patch and apply it immediately upon release. 2. Until a patch is available, restrict contributor-level access to trusted users only and review existing contributor accounts for suspicious activity. 3. Implement manual input validation and output escaping for shortcode attributes if possible, using WordPress security best practices and functions like esc_attr() and wp_kses(). 4. Employ Web Application Firewalls (WAFs) with custom rules to detect and block suspicious shortcode attribute inputs or script injections targeting the plugin. 5. Conduct regular security audits and scanning of WordPress sites to detect injected scripts or anomalous content. 6. Educate content contributors about the risks of inserting untrusted content and enforce strict content policies. 7. Consider temporarily disabling the 'Save as PDF Button' plugin if the risk is deemed unacceptable until a secure version is available. 8. Maintain up-to-date backups to enable recovery from potential defacement or compromise.
Affected Countries
Germany, France, United Kingdom, Netherlands, Italy, Spain, Poland, Sweden
CVE-2025-8397: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in restpack Save as PDF Button
Description
The Save as PDF Button plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's restpackpdfbutton shortcode in all versions up to, and including, 1.9.2 due to insufficient input sanitization and output escaping on user supplied attributes. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
AI-Powered Analysis
Technical Analysis
CVE-2025-8397 is a stored cross-site scripting (XSS) vulnerability identified in the 'Save as PDF Button' WordPress plugin developed by restpack. This vulnerability arises from improper neutralization of input during web page generation (CWE-79), specifically due to insufficient sanitization and escaping of user-supplied attributes in the plugin's shortcode 'restpackpdfbutton'. The flaw affects all versions up to and including 1.9.2. An attacker with contributor-level or higher privileges can exploit this vulnerability by injecting arbitrary JavaScript code into pages or posts via the shortcode attributes. Because the malicious script is stored persistently, it executes every time a user accesses the compromised page, potentially allowing session hijacking, defacement, or unauthorized actions within the context of the victim's browser session. The vulnerability has a CVSS 3.1 base score of 6.4, reflecting medium severity, with an attack vector of network, low attack complexity, privileges required at the contributor level, no user interaction needed, and a scope change indicating that the vulnerability affects components beyond the initially vulnerable plugin. The impact primarily affects confidentiality and integrity, with no direct availability impact. No public exploits have been reported yet, but the vulnerability's nature and ease of exploitation by authenticated users make it a significant risk for WordPress sites using this plugin. The vulnerability was published on November 13, 2025, with no patch currently available, emphasizing the need for interim mitigations.
Potential Impact
For European organizations, this vulnerability poses a risk to the confidentiality and integrity of web content and user sessions on WordPress sites using the 'Save as PDF Button' plugin. Attackers with contributor-level access can inject malicious scripts that execute in the browsers of site visitors and administrators, potentially leading to session hijacking, unauthorized actions, or data theft. This can damage organizational reputation, lead to data breaches involving personal or sensitive information, and disrupt trust in digital services. Given the widespread use of WordPress across Europe for corporate, governmental, and media websites, the vulnerability could affect a broad range of sectors including public administration, media, education, and e-commerce. The requirement for contributor-level access somewhat limits the attack surface but does not eliminate risk, especially in environments with many content editors or where account compromise is possible. The absence of known exploits in the wild currently reduces immediate risk but does not preclude future exploitation. The vulnerability's impact is heightened in organizations with high user interaction on WordPress sites and where the plugin is actively used to generate PDF content.
Mitigation Recommendations
1. Monitor the vendor's announcements for an official patch and apply it immediately upon release. 2. Until a patch is available, restrict contributor-level access to trusted users only and review existing contributor accounts for suspicious activity. 3. Implement manual input validation and output escaping for shortcode attributes if possible, using WordPress security best practices and functions like esc_attr() and wp_kses(). 4. Employ Web Application Firewalls (WAFs) with custom rules to detect and block suspicious shortcode attribute inputs or script injections targeting the plugin. 5. Conduct regular security audits and scanning of WordPress sites to detect injected scripts or anomalous content. 6. Educate content contributors about the risks of inserting untrusted content and enforce strict content policies. 7. Consider temporarily disabling the 'Save as PDF Button' plugin if the risk is deemed unacceptable until a secure version is available. 8. Maintain up-to-date backups to enable recovery from potential defacement or compromise.
Affected Countries
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Wordfence
- Date Reserved
- 2025-07-30T21:17:11.981Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 691599b6f47b1f1c8b520c6a
Added to database: 11/13/2025, 8:41:26 AM
Last enriched: 11/20/2025, 9:23:14 AM
Last updated: 1/7/2026, 4:21:16 AM
Views: 64
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-2026-20893: Origin validation error in Fujitsu Client Computing Limited Fujitsu Security Solution AuthConductor Client Basic V2
HighCVE-2025-14891: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in ivole Customer Reviews for WooCommerce
MediumCVE-2025-14059: CWE-73 External Control of File Name or Path in roxnor EmailKit – Email Customizer for WooCommerce & WP
MediumCVE-2025-12648: CWE-552 Files or Directories Accessible to External Parties in cbutlerjr WP-Members Membership Plugin
MediumCVE-2025-14631: CWE-476 NULL Pointer Dereference in TP-Link Systems Inc. Archer BE400
HighActions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console in Console -> Billing for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.