CVE-2025-48248

6.5 MEDIUM

📋 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

Products:
  • Sitewide Discount for WooCommerce: Apply Discount to All Products
Versions: All versions up to and including 2.2.1
Operating Systems: All operating systems running WordPress
Default Config Vulnerable: ⚠️ Yes
Notes: Only affects WordPress installations with this specific plugin enabled. Requires attacker to have some level of access to inject the XSS payload.

⚠️ 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.

Recommended Actions:
  1. Review the CVE details at NVD
  2. Check vendor security advisories for your specific version
  3. Test if the vulnerability is exploitable in your environment
  4. 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.

🌐 Internet-Facing: HIGH
🏢 Internal Only: LOW

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: LIKELY
Unauthenticated Exploit: ✅ No
Complexity: LOW

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

Vendor Advisory: https://patchstack.com/database/wordpress/plugin/global-shop-discount-for-woocommerce/vulnerability/wordpress-sitewide-discount-for-woocommerce-apply-discount-to-all-products-2-2-1-cross-site-scripting-xss-vulnerability?_s_id=cve

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

all

Temporarily disable the plugin until patched version is available

wp plugin deactivate sitewide-discount-for-woocommerce-apply-discount-to-all-products

Implement Content Security Policy

all

Add 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=")

🔗 References

📤 Share & Export