CVE-2025-22809

6.5 MEDIUM

📋 TL;DR

This DOM-based Cross-Site Scripting (XSS) vulnerability in the Gravity Master PDF Catalog Woocommerce WordPress plugin allows attackers to inject malicious scripts into web pages viewed by other users. The vulnerability affects all WordPress sites using this plugin up to version 2.0. Attackers can steal session cookies, redirect users, or perform actions on their behalf.

💻 Affected Systems

Products:
  • Gravity Master PDF Catalog Woocommerce WordPress Plugin
Versions: All versions up to and including 2.0
Operating Systems: All operating systems running WordPress
Default Config Vulnerable: ⚠️ Yes
Notes: Vulnerability exists in the plugin's JavaScript that processes user-controlled input without proper sanitization.

⚠️ 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 the WordPress site, install backdoors, deface the site, or steal customer data including payment information.

🟠

Likely Case

Attackers steal user session cookies, redirect users to phishing sites, or perform actions on behalf of authenticated users.

🟢

If Mitigated

With proper input validation and output encoding, malicious scripts are neutralized before reaching users' browsers.

🌐 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 doesn't require authentication.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Version after 2.0 (check plugin repository for latest)

Vendor Advisory: https://patchstack.com/database/wordpress/plugin/pdf-catalog-woocommerce/vulnerability/wordpress-pdf-catalog-woocommerce-plugin-2-0-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 'PDF Catalog Woocommerce'. 4. Click 'Update Now' if update available. 5. If no update available, deactivate and delete the plugin.

🔧 Temporary Workarounds

Content Security Policy (CSP)

all

Implement a strict CSP header to prevent execution of inline scripts and restrict script 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'";

Input Validation Filter

all

Add WordPress filter to sanitize all user input before processing.

Add to theme functions.php: add_filter('preprocess_comment', 'sanitize_text_field');
Add custom sanitization for plugin-specific inputs

🧯 If You Can't Patch

  • Disable or remove the PDF Catalog Woocommerce plugin immediately
  • Implement Web Application Firewall (WAF) rules to block XSS payloads

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin → Plugins → Installed Plugins for 'PDF Catalog Woocommerce' version 2.0 or earlier.

Check Version:

wp plugin list --name='pdf-catalog-woocommerce' --field=version (WP-CLI) or check WordPress admin panel

Verify Fix Applied:

Verify plugin version is higher than 2.0 in WordPress admin panel, or test with XSS payloads in affected plugin features.

📡 Detection & Monitoring

Log Indicators:

  • Unusual JavaScript in POST/GET parameters
  • Multiple failed XSS attempts in web server logs
  • Suspicious user agents containing script tags

Network Indicators:

  • HTTP requests containing <script> tags or JavaScript events in parameters
  • Unusual redirects to external domains

SIEM Query:

source="web_logs" AND ("<script" OR "javascript:" OR "onload=" OR "onerror=") AND uri_path="/wp-content/plugins/pdf-catalog-woocommerce/"

🔗 References

📤 Share & Export