CVE-2025-31412

6.5 MEDIUM

📋 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

Products:
  • JetProductGallery (Jet Woo Product Gallery WordPress plugin)
Versions: n/a through 2.1.22
Operating Systems: All operating systems running WordPress
Default Config Vulnerable: ⚠️ Yes
Notes: Only affects WordPress installations with the JetProductGallery plugin enabled. The vulnerability is in the plugin's frontend JavaScript code.

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

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: UNKNOWN
Unauthenticated Exploit: ⚠️ Yes
Complexity: LOW

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

Vendor Advisory: https://patchstack.com/database/wordpress/plugin/jet-woo-product-gallery/vulnerability/wordpress-jetproductgallery-plugin-2-1-22-cross-site-scripting-xss-vulnerability?_s_id=cve

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

all

Temporarily disable the vulnerable plugin until patched

wp plugin deactivate jet-woo-product-gallery

Implement Content Security Policy

linux

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

🔗 References

📤 Share & Export