Skip to main content
Vulnerability Database/CVE-2025-12191

CVE-2025-12191: PDF Catalog for WooCommerce XSS Vulnerability

CVE-2025-12191 is a stored XSS flaw in PDF Catalog for WooCommerce plugin that allows authenticated attackers to inject malicious scripts. This post explains its technical details, affected versions, security impact, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2025-12191 Overview

CVE-2025-12191 is a Stored Cross-Site Scripting (XSS) vulnerability in the PDF Catalog for WooCommerce plugin for WordPress. The flaw affects all plugin versions up to and including 1.1.18. It resides in the pdfcatalog AJAX action, which fails to sanitize input and escape output correctly. Authenticated users with Subscriber-level access or higher can inject arbitrary JavaScript into stored pages. The malicious script executes in the browser of any visitor who loads the affected page. The issue is tracked under CWE-79 and was reported through the Wordfence Vulnerability Report.

Critical Impact

Authenticated Subscriber-level attackers can inject persistent JavaScript that executes in the context of any user visiting a compromised page, enabling session theft, admin account takeover, and site defacement.

Affected Products

  • PDF Catalog for WooCommerce plugin for WordPress
  • All versions up to and including 1.1.18
  • WordPress sites running WooCommerce with this plugin installed

Discovery Timeline

  • 2025-12-05 - CVE-2025-12191 published to NVD
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2025-12191

Vulnerability Analysis

The vulnerability is a Stored Cross-Site Scripting flaw in the pdfcatalog AJAX action handler. The endpoint accepts input from authenticated users without performing adequate sanitization. The plugin also fails to escape the stored data when rendering it back into HTML pages. Attacker-controlled JavaScript is therefore persisted in the database and executed on every subsequent page load.

Because the required privilege level is only Subscriber, the attack surface includes any WordPress site that permits open user registration. Successful exploitation can lead to administrator session hijacking, forced administrative actions through the injected script, and pivoting to full site compromise.

Root Cause

The root cause is insufficient input sanitization on data received through the pdfcatalog AJAX handler combined with missing output escaping when that data is rendered. WordPress provides helpers such as sanitize_text_field(), wp_kses_post(), and esc_html() for these operations, but the vulnerable code paths do not consistently apply them. The AJAX action also lacks a capability check strong enough to restrict use to trusted roles.

Attack Vector

Exploitation requires network access to the target WordPress site and an authenticated account with Subscriber privileges or higher. The attacker sends a crafted request to the pdfcatalog AJAX endpoint containing an XSS payload. The payload is stored server-side and later reflected without escaping into a rendered page. A victim, typically an administrator viewing the affected page, triggers the injected script under their own browser session. User interaction is required for the payload to fire, as noted by the changed scope in the CVSS vector.

No verified public proof-of-concept is available. See the Wordfence advisory for additional technical context.

Detection Methods for CVE-2025-12191

Indicators of Compromise

  • Unexpected <script>, <iframe>, onerror=, or onload= fragments stored in WordPress post, page, or plugin option content.
  • POST requests to admin-ajax.php with action=pdfcatalog originating from low-privilege user accounts.
  • New or modified administrator accounts created shortly after Subscriber-level activity on the site.
  • Outbound browser requests from admin sessions to unfamiliar third-party domains after visiting catalog-related pages.

Detection Strategies

  • Inspect the wp_posts and plugin-specific option tables for HTML event handlers and script tags in fields written by the pdfcatalog action.
  • Review web server access logs for admin-ajax.php calls with action=pdfcatalog and correlate the source user against role assignments.
  • Enable and monitor a Content Security Policy (CSP) report endpoint to catch inline-script violations on catalog pages.

Monitoring Recommendations

  • Alert on any Subscriber-level account submitting requests to authenticated AJAX actions that are not part of standard user workflows.
  • Track creation of new WordPress users with elevated roles following AJAX activity from lower-privileged accounts.
  • Baseline normal plugin traffic patterns and flag deviations in request volume or payload size to the pdfcatalog endpoint.

How to Mitigate CVE-2025-12191

Immediate Actions Required

  • Update the PDF Catalog for WooCommerce plugin to a version above 1.1.18 as soon as the vendor releases a patched build.
  • Audit existing WordPress user accounts and remove or downgrade unnecessary Subscriber-level registrations.
  • Review all pages and posts created or modified since the plugin was installed for injected script content and remove any malicious payloads.
  • Rotate administrator passwords and invalidate active sessions if compromise is suspected.

Patch Information

At the time of publication, consult the plugin page on WordPress.org and the Wordfence Vulnerability Report for the fixed version. Apply the vendor update through the WordPress plugin manager once available, and verify the installed version is greater than 1.1.18.

Workarounds

  • Disable the PDF Catalog for WooCommerce plugin until a patched version is installed.
  • Disable open user registration or restrict new registrations to trusted email domains to remove the Subscriber attack path.
  • Deploy a Web Application Firewall (WAF) rule that blocks requests to admin-ajax.php with action=pdfcatalog containing HTML tags or JavaScript event handlers.
  • Enforce a strict Content Security Policy that blocks inline scripts on WordPress admin and catalog pages.
bash
# Example WordPress-CLI commands to reduce exposure
wp plugin deactivate pdf-catalog-for-woocommerce
wp option update users_can_register 0
wp user list --role=subscriber --fields=ID,user_login,user_registered

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.