CVE-2025-66091
📋 TL;DR
This DOM-based XSS vulnerability in the Stylish Cost Calculator WordPress plugin allows attackers to inject malicious scripts into web pages viewed by other users. It affects all WordPress sites running the plugin version 8.1.5 or earlier. Attackers can steal session cookies, redirect users, or perform actions on their behalf.
💻 Affected Systems
- WordPress Stylish Cost Calculator 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 steal administrator session cookies, gain full control of WordPress site, install backdoors, deface website, or steal sensitive user data.
Likely Case
Attackers steal user session cookies, redirect visitors to malicious sites, or perform limited actions within the vulnerable plugin context.
If Mitigated
With proper input validation and output encoding, malicious scripts are neutralized before execution, preventing any impact.
🎯 Exploit Status
DOM-based XSS typically requires user interaction but can be exploited via crafted links or forms.
🛠️ Fix & Mitigation
✅ Official Fix
Patch Version: >8.1.5
Restart Required: No
Instructions:
1. Log into WordPress admin panel. 2. Navigate to Plugins > Installed Plugins. 3. Find 'Stylish Cost Calculator'. 4. Click 'Update Now' if available. 5. If no update appears, manually download latest version from WordPress repository and replace plugin files.
🔧 Temporary Workarounds
Disable Plugin
allTemporarily disable the vulnerable plugin until patched.
wp plugin deactivate stylish-cost-calculator
Content Security Policy
allImplement 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
- Implement Web Application Firewall (WAF) with XSS protection rules.
- Disable user input fields in the cost calculator or implement strict input validation.
🔍 How to Verify
Check if Vulnerable:
Check WordPress admin > Plugins > Installed Plugins for Stylish Cost Calculator version.
Check Version:
wp plugin get stylish-cost-calculator --field=version
Verify Fix Applied:
Verify plugin version is >8.1.5 in WordPress admin panel.
📡 Detection & Monitoring
Log Indicators:
- Unusual POST/GET requests to plugin endpoints with script tags
- Multiple failed XSS attempts in web server logs
Network Indicators:
- HTTP requests containing <script> tags or javascript: URIs to plugin URLs
SIEM Query:
source="web_server" AND (uri="*stylish-cost-calculator*" AND (content="*<script>*" OR content="*javascript:*"))