Summary
The PDF Invoice for WooCommerce + Drag and Drop Template Builder plugin for WordPress deserializes untrusted input (CWE-502) in all versions up to and including 7.2.0. An unauthenticated attacker can inject a PHP object via the 'billing_address.first_name' parameter during WooCommerce Store API checkout. The fix in 7.2.0 was incomplete: escape_pdf_note() was applied only to the customer note path, and the billing address path remains unprotected.
The CVSS 3.1 score is 9.1 (critical). The attack is carried out over the network with low complexity and requires no authentication or user interaction. Exploitation requires guest checkout to be enabled, along with a payment method that moves orders to on-hold status, such as the stock WooCommerce Direct Bank Transfer.
The plugin itself contains no known POP chain, so the vulnerability has no impact unless another plugin or theme provides one. If such a chain is present, an attacker may delete arbitrary files, retrieve sensitive data or execute code. The vulnerability is not listed in CISA KEV. EPSS is about 1% (65th percentile).
Who is affected
This affects WordPress/WooCommerce stores running PDF Invoice for WooCommerce version 7.2.0 or earlier.
What to do
- Update the plugin to a version newer than 7.2.0. References point to a 7.2.1 package, but check the vendor's or Wordfence's official advisory to confirm the issue is fully fixed in that version.
- Check the installed plugin version on all WordPress sites (Plugins → Installed Plugins).
- Until you update, consider disabling guest checkout or payment methods that set orders to on-hold (e.g. Direct Bank Transfer). This removes the conditions required for exploitation.
- Review your other installed plugins and themes and remove unneeded ones to reduce the chance of a POP chain being present.
- Review order billing address fields for unusual serialized values, and check for unexpectedly deleted files.
Affected products and versions
CVSS vector, explained
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
- Attack vector
- Network (from the internet)
- Attack complexity
- Low
- Privileges required
- None (no login)
- User interaction
- Not required
- Scope
- Vulnerable component only
- Confidentiality
- None
- Integrity
- High impact
- Availability
- High impact
Weakness type (CWE)
- CWE-502 Deserialization of Untrusted Data
References
- www.wordfence.com/threat-intel/vulnerabilities/id/6bdb8018-8a96-45b1-b1e6-5766891bca76?sou
- plugins.trac.wordpress.org/browser/pdf-for-woocommerce/tags/7.2.0/vendor/mpdf/mpdf/src/Mpd
- plugins.trac.wordpress.org/browser/pdf-for-woocommerce/tags/7.2.0/libs/HtmlDocument.php#L3
- plugins.trac.wordpress.org/browser/pdf-for-woocommerce/tags/7.2.0/libs/HtmlNode.php#L280
- plugins.trac.wordpress.org/browser/pdf-for-woocommerce/tags/7.2.0/vendor/mpdf/mpdf/src/Cac
- plugins.trac.wordpress.org/browser/pdf-for-woocommerce/tags/7.2.0/woocommerce/shortcodes.p
- plugins.trac.wordpress.org/browser/pdf-for-woocommerce/tags/7.2.0/woocommerce/emails/index
- downloads.wordpress.org/plugin/pdf-for-woocommerce.7.2.1.zip
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.