Technical impact
The vulnerability is a stored XSS flaw introduced by the Flexible PDF Invoices for WooCommerce & WordPress plugin. The plugin fails to sanitize or escape input from the billing address fields, specifically first_name and _billing_vat_number, which are later inserted unsanitized into a jQuery .html() call in the admin invoice edit view. An unauthenticated attacker can inject a malicious payload by creating an order that contains the malformed data. When a logged‑in administrator later opens the edit page for the affected order and interacts with a field in the customer meta‑box, the payload is decoded and executed in the administrator’s browser. The impact is that the attacker can run arbitrary JavaScript in the context of an administrator, potentially harvesting credentials, defacing the site, or executing further attacks.
Affected Systems
Affected are all installations of the wpdesk Flexible PDF Invoices for WooCommerce & WordPress plugin up to and including version 7.1.2. The vulnerability exists in the plugin code that manages billing information for invoice editing in a WordPress environment. Any site that runs this plugin version and allows order creation with unauthenticated users is potentially vulnerable.
Risk and Exploitability
The CVSS score of 6.1 indicates a moderate severity, and the EPSS score is not available but the issue is not listed in CISA’s KEV catalog, suggesting it is not a widely exploited vulnerability yet. Exploitation requires an attacker to inject the payload via the public order flow and then wait for a privileged admin to open and interact with the invoice edit page. The attack vector is thus limited to initial public injection plus a subsequent internal action, reducing the likelihood of widespread automated exploitation. Nevertheless, because the payload runs with administrator privileges, a successful exploitation can lead to information disclosure, credential theft, or site compromise.