CVE-2025-3814
📋 TL;DR
This stored XSS vulnerability in the Tax Switch for WooCommerce WordPress plugin allows authenticated attackers with Contributor-level access or higher to inject malicious scripts into web pages. The scripts execute whenever users view the compromised pages, potentially stealing credentials or performing unauthorized actions. All WordPress sites using this plugin up to version 1.4.2 are affected.
💻 Affected Systems
- Tax Switch for WooCommerce 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, install backdoors, or redirect users to malicious sites, potentially leading to complete site compromise and data theft.
Likely Case
Attackers with contributor access inject malicious scripts to steal session cookies or credentials from users viewing affected pages, potentially gaining higher privileges or accessing sensitive data.
If Mitigated
With proper input validation and output escaping, the vulnerability is prevented, and even if exploited, web application firewalls and content security policies could block malicious script execution.
🎯 Exploit Status
Exploitation requires authenticated access at Contributor level or higher. The vulnerability is straightforward to exploit once authenticated.
🛠️ Fix & Mitigation
✅ Official Fix
Patch Version: 1.4.3 or later
Vendor Advisory: https://wordpress.org/plugins/tax-switch-for-woocommerce/#developers
Restart Required: No
Instructions:
1. Log into WordPress admin panel. 2. Navigate to Plugins > Installed Plugins. 3. Find 'Tax Switch for WooCommerce'. 4. Click 'Update Now' if update is available. 5. Alternatively, download version 1.4.3+ from WordPress plugin repository and manually update.
🔧 Temporary Workarounds
Disable vulnerable plugin
allTemporarily disable the Tax Switch for WooCommerce plugin until patched
wp plugin deactivate tax-switch-for-woocommerce
Implement WAF rules
allConfigure web application firewall to block XSS payloads targeting the 'class-name' parameter
🧯 If You Can't Patch
- Remove Contributor role access for untrusted users
- Implement Content Security Policy headers to restrict script execution
🔍 How to Verify
Check if Vulnerable:
Check WordPress admin panel > Plugins > Tax Switch for WooCommerce version. If version is 1.4.2 or lower, you are vulnerable.
Check Version:
wp plugin get tax-switch-for-woocommerce --field=version
Verify Fix Applied:
After updating, verify plugin version shows 1.4.3 or higher in WordPress admin plugins page.
📡 Detection & Monitoring
Log Indicators:
- Unusual POST requests to WordPress admin-ajax.php with 'class-name' parameter containing script tags
- Multiple failed login attempts followed by successful contributor-level login
Network Indicators:
- HTTP requests containing malicious script payloads in 'class-name' parameter
- Outbound connections to suspicious domains after page views
SIEM Query:
source="wordpress.log" AND ("class-name" AND ("<script" OR "javascript:" OR "onerror="))
🔗 References
- https://plugins.trac.wordpress.org/browser/tax-switch-for-woocommerce/tags/1.4.0/includes/class-wdevs-tax-switch-block.php#L112
- https://plugins.trac.wordpress.org/changeset/3277044/
- https://wordpress.org/plugins/tax-switch-for-woocommerce/#developers
- https://www.wordfence.com/threat-intel/vulnerabilities/id/e290f1aa-d20a-4e76-b77b-3e5b79e9d379?source=cve