CVE-2025-48248
📋 TL;DR
This stored cross-site scripting (XSS) vulnerability in the Sitewide Discount for WooCommerce plugin allows attackers to inject malicious scripts into WordPress admin pages. When exploited, these scripts execute in the context of authenticated administrators, potentially compromising their sessions. All WordPress sites using affected versions of this plugin are vulnerable.
💻 Affected Systems
- Sitewide Discount for WooCommerce: Apply Discount to All Products
⚠️ 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 session cookies, gain full administrative access to the WordPress site, install backdoors, deface the site, or pivot to attack customer data in WooCommerce.
Likely Case
Attackers inject malicious JavaScript to steal administrator session tokens, leading to unauthorized administrative access and potential site takeover.
If Mitigated
With proper input validation and output encoding, malicious scripts would be neutralized before execution, preventing any impact.
🎯 Exploit Status
Stored XSS vulnerabilities are commonly exploited. While no public PoC is confirmed, the vulnerability type is well-understood and easily weaponized.
🛠️ Fix & Mitigation
✅ Official Fix
Patch Version: Versions after 2.2.1
Restart Required: No
Instructions:
1. Log into WordPress admin panel. 2. Navigate to Plugins → Installed Plugins. 3. Find 'Sitewide Discount for WooCommerce: Apply Discount to All Products'. 4. Click 'Update Now' if available, or manually update to latest version. 5. Verify plugin version is above 2.2.1.
🔧 Temporary Workarounds
Disable vulnerable plugin
allTemporarily disable the plugin until patched version is available
wp plugin deactivate sitewide-discount-for-woocommerce-apply-discount-to-all-products
Implement Content Security Policy
allAdd CSP headers to restrict script execution sources
Add to .htaccess: Header set Content-Security-Policy "default-src 'self'; script-src 'self'"
Add to nginx config: add_header Content-Security-Policy "default-src 'self'; script-src 'self'";
🧯 If You Can't Patch
- Remove the plugin entirely if not essential for site functionality
- Restrict WordPress admin access to trusted IP addresses only using firewall rules
🔍 How to Verify
Check if Vulnerable:
Check WordPress admin → Plugins → Installed Plugins for 'Sitewide Discount for WooCommerce: Apply Discount to All Products' version 2.2.1 or lower
Check Version:
wp plugin get sitewide-discount-for-woocommerce-apply-discount-to-all-products --field=version
Verify Fix Applied:
Verify plugin version is above 2.2.1 in WordPress admin panel
📡 Detection & Monitoring
Log Indicators:
- Unusual POST requests to plugin admin endpoints
- Suspicious JavaScript payloads in request parameters
- Multiple failed login attempts following suspicious admin activity
Network Indicators:
- Unexpected outbound connections from WordPress admin sessions
- Data exfiltration patterns from admin interfaces
SIEM Query:
source="wordpress.log" AND ("sitewide-discount" OR "global-shop-discount") AND ("<script>" OR "javascript:" OR "onerror=" OR "onload=")