CVE-2025-31412
📋 TL;DR
This DOM-based cross-site scripting (XSS) vulnerability in the JetProductGallery WordPress plugin allows attackers to inject malicious scripts into web pages viewed by other users. It affects all WordPress sites using JetProductGallery versions up to 2.1.22. Attackers can steal session cookies, redirect users, or perform actions on their behalf.
💻 Affected Systems
- JetProductGallery (Jet Woo Product Gallery 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 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 affected user's context.
If Mitigated
Minimal impact if proper Content Security Policy (CSP) headers are implemented and user input validation is enforced elsewhere.
🎯 Exploit Status
DOM-based XSS typically requires user interaction (clicking a malicious link) but can be exploited without authentication. No public exploit code has been identified yet.
🛠️ Fix & Mitigation
✅ Official Fix
Patch Version: 2.1.23 or later
Restart Required: No
Instructions:
1. Log into WordPress admin panel. 2. Go to Plugins → Installed Plugins. 3. Find 'Jet Woo Product Gallery'. 4. Click 'Update Now' if available. 5. Alternatively, download version 2.1.23+ from WordPress repository and manually update.
🔧 Temporary Workarounds
Disable JetProductGallery Plugin
allTemporarily disable the vulnerable plugin until patched
wp plugin deactivate jet-woo-product-gallery
Implement Content Security Policy
linuxAdd CSP headers to prevent script execution from untrusted sources
Add to .htaccess: Header set Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://trusted.cdn.com;"
🧯 If You Can't Patch
- Implement a Web Application Firewall (WAF) with XSS protection rules
- Disable the JetProductGallery plugin entirely and use alternative gallery solutions
🔍 How to Verify
Check if Vulnerable:
Check WordPress admin → Plugins → Jet Woo Product Gallery → Version number. If version is 2.1.22 or lower, you are vulnerable.
Check Version:
wp plugin get jet-woo-product-gallery --field=version
Verify Fix Applied:
After updating, verify version is 2.1.23 or higher in WordPress plugins page.
📡 Detection & Monitoring
Log Indicators:
- Unusual JavaScript payloads in URL parameters
- Multiple requests to gallery pages with suspicious query strings
- Unexpected iframe or script tags in page responses
Network Indicators:
- HTTP requests containing JavaScript in query parameters targeting gallery pages
- Outbound connections to suspicious domains following gallery page visits
SIEM Query:
source="web_server_logs" AND (url="*jetproductgallery*" AND (url="*<script*" OR url="*javascript:*" OR url="*onload=*"))