CVE-2026-124977: Flexible PDF Invoices for WooCommerce & WordPress <= 7.1.2 - Unauthenticated Stored Cross-Site Scripting via Billing Field
The Flexible PDF Invoices for WooCommerce & WordPress plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'billingaddress.firstname / extensions.wpdesk-flexible-invoices-checkout.billingvatnumber' parameter in all versions up to, and including, 7.1.2 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. Execution requires an administrator to open the invoice edit page for the attacker's order and interact with (e.g., type into or trigger a change/keyup event on) a field in the customer metabox, at which point the payload stored in billing fields such as firstname or billingvatnumber is decoded from its entity-escaped input value and passed unsanitized to jQuery .html(). Successful exploitation additionally requires an action by an administrator — the attacker cannot trigger the vulnerability on their own.
Affected Software
Event History
Frequently Asked Questions
Who can exploit this issue, and what access do they need?
An unauthenticated attacker can submit a WooCommerce order containing a malicious value in the billing first-name or VAT-number-related billing field. They do not need an account, but exploitation depends on an administrator later reviewing and interacting with that order's invoice edit page.
Is exploitation automatic when an administrator opens the affected order?
No. The administrator must interact with a field in the customer metabox, such as by typing in it or triggering a change or keyup event. The attacker cannot independently trigger the script execution.
Which installations are affected?
All plugin versions through 7.1.2 are affected. The vulnerable path involves invoice editing for an attacker-controlled WooCommerce order and billing fields including first_name and _billing_vat_number.
How can administrators identify potentially malicious orders?
Review invoice-editable orders for unexpected or suspicious content in customer billing first-name and VAT-number billing fields. Treat unusual encoded text or script-like content in these fields as potentially unsafe, particularly before interacting with customer-metabox fields on the invoice edit page.