Skip to main content
Vulnerability Database/CVE-2026-93654

CVE-2026-93654: WordPress Premium Packages Plugin XSS Flaw

CVE-2026-93654 is a stored cross-site scripting vulnerability in the Premium Packages WordPress plugin that lets unauthenticated attackers inject malicious scripts. This article covers technical details, affected versions, impact, and mitigation strategies.

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-2026-93654 Overview

CVE-2026-93654 is a stored Cross-Site Scripting (XSS) vulnerability in the Premium Packages – Sell Digital Products Securely plugin for WordPress. All versions up to and including 7.2.1 are affected. The flaw resides in the cart_items[][product_name] parameter, which lacks proper input sanitization and output escaping [CWE-79]. Unauthenticated attackers can inject arbitrary web scripts that execute when any user accesses an affected page. The checkout REST route uses permission_callback set to __return_true, and the invoice loader performs no order ownership check. This combination allows persistence of the payload and rendering to any logged-in user who views the invoice.

Critical Impact

Unauthenticated attackers can inject persistent JavaScript that executes in the browser of any logged-in user viewing an invoice, enabling session theft and administrative account takeover.

Affected Products

  • Premium Packages – Sell Digital Products Securely plugin for WordPress
  • All versions up to and including 7.2.1
  • WordPress sites using the wpdm-premium-packages plugin

Discovery Timeline

  • 2026-09-25 - CVE CVE-2026-93654 published to NVD
  • 2026-09-25 - Last updated in NVD database

Technical Details for CVE-2026-93654

Vulnerability Analysis

The vulnerability chains two distinct weaknesses in the plugin's cart and invoice workflow. First, the checkout REST route is registered with permission_callback set to __return_true, which authorizes any request including those from unauthenticated clients. Second, the invoice loader does not validate order ownership, so any logged-in user can render any order's invoice.

When an attacker submits crafted cart data via the checkout endpoint, the cart_items[][product_name] parameter is persisted into the order record without sanitization. The invoice template at templates/invoices/default/invoice.php subsequently outputs the stored value without escaping, allowing injected <script> payloads to execute in the viewer's browser context.

Root Cause

The root cause is twofold: missing input sanitization on the product_name field in CartItem.php and CartService.php, combined with missing output escaping in the invoice template. The permissive REST permission callback and absent ownership check amplify the impact by removing both authentication and authorization barriers.

Attack Vector

An unauthenticated attacker sends a crafted POST request to the plugin's checkout REST route with a JavaScript payload embedded in cart_items[][product_name]. The payload is stored in the order record. When an administrator or other logged-in user opens the resulting invoice, the script executes within their authenticated session. This enables cookie theft, forced administrative actions via the WordPress REST API, and persistence through additional plugin or user modifications.

Technical details are documented in the Wordfence Vulnerability Report and the referenced source files including CartService.php and invoice.php.

Detection Methods for CVE-2026-93654

Indicators of Compromise

  • Unauthenticated POST requests to the plugin's checkout REST route containing HTML or JavaScript characters in the cart_items[][product_name] field.
  • Order records in the WordPress database with product_name values containing <script>, onerror=, onload=, or encoded script fragments.
  • Unexpected outbound requests from administrator browser sessions immediately after viewing an invoice page.
  • Newly created administrator accounts or modified user roles following invoice access.

Detection Strategies

  • Inspect web server access logs for POST requests to WPDM checkout endpoints originating from unauthenticated sessions with suspicious payloads.
  • Query the WordPress postmeta and order tables for stored values containing script tags or HTML event handlers in product name fields.
  • Monitor WordPress admin audit logs for unexplained privilege or configuration changes correlated with invoice views.

Monitoring Recommendations

  • Enable a Web Application Firewall (WAF) rule to flag or block script-like payloads in checkout parameters for the wpdm-premium-packages plugin.
  • Alert on anomalous REST API traffic volumes targeting the plugin's cart and checkout routes.
  • Track invoice page views and correlate with subsequent administrator actions to identify payload execution.

How to Mitigate CVE-2026-93654

Immediate Actions Required

  • Update the Premium Packages plugin to the version released in the plugin changeset 3708519 immediately.
  • Audit existing orders and invoices for stored script payloads in product_name fields and sanitize or remove affected records.
  • Rotate credentials for any administrator or privileged user who accessed invoices during the exposure window.
  • Review the WordPress users table for unauthorized accounts or role changes.

Patch Information

The vendor addressed the issue in a plugin update tracked in WordPress Premium Packages Changeset 3708519. Site administrators must upgrade beyond version 7.2.1. Refer to the Wordfence Vulnerability Report for the fixed version details.

Workarounds

  • Deactivate the Premium Packages plugin until a patched version can be installed.
  • Deploy a WAF rule to block requests to the plugin's checkout REST route that contain <, >, or script tokens in cart_items parameters.
  • Restrict access to the WordPress admin and invoice pages via IP allowlisting while a patch is applied.
  • Enforce a strict Content Security Policy (CSP) that disallows inline scripts to reduce the impact of injected payloads.

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.