On this page (7 sections)

A critical vulnerability, CVE-2026-136240, has been published for the PDF Invoice for WooCommerce + Drag and Drop Template Builder plugin. According to the GitHub Advisory Database entry, all versions up to and including 7.2.0 are vulnerable to PHP object injection by unauthenticated attackers.

If you run a WooCommerce store with this plugin, especially one that allows guest checkout and accepts bank transfer payments, check your version and review your exposure today. The picture is not fully settled: the advisory describes the 7.2.0 fix as incomplete, and it lists the patched version as unknown.

What was disclosed

The advisory says the plugin deserializes untrusted input, which lets an unauthenticated attacker inject a PHP object. The published CVSS vector rates it network-reachable, low complexity, with no privileges and no user interaction needed, and a high impact on integrity and availability. The weakness is classed as CWE-502, Deserialization of Untrusted Data. The same text appears on NVD, but that is a repeat of the same description, not a separate confirmation. The record also references a Wordfence threat intelligence entry.

The GitHub advisory is marked Unreviewed and only one publisher's text is available so far. Treat details as provisional and watch for updates from the plugin author and Wordfence.

Why this weakness matters, and its limits

PHP object injection happens when an application rebuilds a PHP object from data an attacker can influence. On its own, that only lets the attacker choose which object gets created. The damage depends on whether other code on the site contains a usable chain of methods that run automatically when such an object is created or destroyed, often called a POP chain.

The advisory states that no known POP chain exists in the vulnerable plugin itself, so the flaw has no impact unless another installed plugin or theme provides one. If such a chain is present, the advisory says the outcome could include deleting arbitrary files, retrieving sensitive data, or code execution, depending on the chain. That is why a 9.1 score can overstate the risk for a clean site and understate it for a site with many third-party components.

Conditions for exploitation

The advisory ties exploitation to specific store settings. It says the 7.2.0 remediation applied the escaping function escape_pdf_note() only to the customer note path, while the billing address path in woocommerce/shortcodes.php (lines 975 to 978) remains unpatched. It also says exploitation requires:

  • Guest checkout enabled, so an unauthenticated visitor can place an order.
  • A payment method that moves orders to on-hold status, such as the stock WooCommerce Direct Bank Transfer option.

Stores that require accounts at checkout, or that use only payment methods that do not set orders on hold, may not meet these conditions according to the advisory. Do not treat that as a reason to skip updating, since the sources do not describe every possible path.

How to check your exposure

First, find out whether the plugin is installed and which version it is. The plugin slug in the references is pdf-for-woocommerce. This read-only WP-CLI command lists it with its status and version; run it from your WordPress root on the server and look for a version of 7.2.0 or lower.

List the plugin, its status and version (run from the WordPress root)WP-CLI
wp plugin list --name=pdf-for-woocommerce --fields=name,status,version

Next, review the settings the advisory names. This read-only command shows whether guest checkout is enabled; a value of yes means visitors can order without an account.

Check whether guest checkout is enabled (read-only)WP-CLI
wp option get woocommerce_enable_guest_checkout

Finally, list the other plugins and themes on the site with their versions and pending updates, since the real-world impact depends on whether one of them supplies a POP chain.

List installed plugins and themes with versions (read-only)WP-CLI
wp plugin list --fields=name,status,version,update
wp theme list --fields=name,status,version,update

What to do now

The references include a download link for version 7.2.1 of the plugin, but the sources do not state that 7.2.1 fixes this issue, and the advisory lists patched versions as unknown. Plan around that uncertainty.

Caution. Back up your site and test on staging before updating or disabling a checkout-related plugin. Removing the invoice plugin can change the emails and PDFs customers receive.
  1. Confirm whether pdf-for-woocommerce is installed and note its version.
  2. Check the plugin author's page and the Wordfence entry for a confirmed fixed version, then update to it.
  3. If no confirmed fix is available, consider deactivating the plugin until one is, and generate invoices another way in the meantime.
  4. If you must keep it active, consider turning off guest checkout, one of the two conditions the advisory names.
  5. Remove unused plugins and themes, which reduces the chance that a POP chain exists on the site.
  6. Update every other plugin and theme, since a vulnerable component elsewhere is what could turn this flaw into real damage.
  7. Review recent orders for unusual billing address values, and check web server logs for odd requests to checkout.
  8. Keep a tested backup so you can restore quickly if files are altered or deleted.
Tip. For a broader routine, see our WordPress security checklist and the guide on checking whether a plugin is vulnerable.

Detection and monitoring afterwards

Because exploitation depends on other code on the site, signs of a problem may look like the effects of a different bug: missing files, unexpected PHP files in uploads or plugin folders, new administrator accounts, or changed core files. Compare your files against clean copies, review admin users, and watch for unexplained errors on the checkout and order pages. If you suspect a compromise, follow our guide on what to do when a website is hacked.

Keep tracking this entry. The fixed version, any exploitation reports and the advisory review status may change. The known plugin vulnerabilities list is a useful place to look for updates, and the Webforta blog carries our latest security coverage.

What is still unknown

  • The first version that fully fixes the issue is not confirmed in the sources.
  • Whether attackers are exploiting it in the wild is not stated.
  • No specific POP chain in a third-party plugin or theme is named, so real-world impact is unquantified.
  • Only one publisher's text is available, and NVD repeats it.

Sources

This article is based on the public sources below. Details can change as vendors and researchers publish more; check the original advisories before acting on version numbers.

  1. CVE-2026-136240 - GitHub Advisory Databasegithub.com
  2. CVE-2026-136240: The PDF Invoice for WooCommerce + Drag and Drop Template Builder plugin for WordPress is vulnerable to PHP Object Injection in all versions up to, and…nvd.nist.gov ·
  • WordPress
  • WooCommerce
  • PHP object injection
  • CVE-2026-136240
  • plugin vulnerability