CVE-2025-8397
📋 TL;DR
The Save as PDF Button WordPress plugin has a stored XSS vulnerability that allows authenticated attackers with contributor-level access or higher to inject malicious scripts into web pages. These scripts execute whenever users visit the compromised pages, potentially stealing credentials or performing unauthorized actions. All WordPress sites using this plugin up to version 1.9.2 are affected.
💻 Affected Systems
- Save as PDF Button WordPress Plugin
⚠️ Manual Verification Required
This CVE does not have specific version information in our database, so automatic vulnerability detection cannot determine if your system is affected.
Why? The CVE database entry doesn't specify which versions are vulnerable (no version ranges provided by the vendor/NVD).
🔒 Custom verification scripts are available for registered users. Sign up free to download automated test scripts.
- Review the CVE details at NVD
- Check vendor security advisories for your specific version
- Test if the vulnerability is exploitable in your environment
- Consider updating to the latest version as a precaution
⚠️ Risk & Real-World Impact
Worst Case
Attackers could steal administrator credentials, take over the WordPress site, deface pages, or redirect users to malicious sites, potentially leading to complete site compromise and data theft.
Likely Case
Attackers with contributor access inject malicious scripts that steal user session cookies or credentials, potentially gaining higher privileges or compromising user accounts.
If Mitigated
With proper access controls and input validation, the impact is limited to script execution in the context of the affected page only, without privilege escalation.
🎯 Exploit Status
Exploitation requires authenticated access (contributor role or higher). The vulnerability is in the restpackpdfbutton shortcode attribute handling.
🛠️ Fix & Mitigation
✅ Official Fix
Patch Version: 1.9.3 or later
Vendor Advisory: https://wordpress.org/plugins/save-as-pdf/#developers
Restart Required: No
Instructions:
1. Log into WordPress admin panel. 2. Go to Plugins → Installed Plugins. 3. Find 'Save as PDF Button' plugin. 4. Click 'Update Now' if update available. 5. If no update available, deactivate and remove the plugin.
🔧 Temporary Workarounds
Remove Contributor Access
allTemporarily remove contributor-level access from untrusted users to prevent exploitation.
Disable Plugin
allDeactivate the Save as PDF Button plugin until patched.
🧯 If You Can't Patch
- Implement strict user role management and limit contributor accounts to trusted users only
- Add web application firewall rules to block XSS payloads targeting the restpackpdfbutton shortcode
🔍 How to Verify
Check if Vulnerable:
Check WordPress admin → Plugins → Installed Plugins for 'Save as PDF Button' version 1.9.2 or earlier.
Check Version:
wp plugin list --name='save-as-pdf' --field=version
Verify Fix Applied:
Verify plugin version is 1.9.3 or later in WordPress admin panel.
📡 Detection & Monitoring
Log Indicators:
- Unusual POST requests to WordPress admin-ajax.php or REST API endpoints with suspicious parameters
- Multiple failed login attempts followed by successful contributor-level login
Network Indicators:
- HTTP requests containing script tags or JavaScript in shortcode parameters
- Unusual outbound connections from WordPress site after page visits
SIEM Query:
source="wordpress.log" AND ("restpackpdfbutton" OR "save-as-pdf") AND ("<script>" OR "javascript:" OR "onerror=" OR "onload=")