A security advisory published in the GitHub Advisories database on 26 November 2026 describes a PHP Object Injection flaw in the PDF Invoice for WooCommerce + Drag and Drop Template Builder plugin for WordPress. It is tracked as CVE-2026-136240 and carries a highest reported CVSS score of 9.1 (Critical). The advisory does not name the researcher who reported it.

The flaw can be triggered by unauthenticated attackers, meaning no login is needed. It affects all versions up to and including 7.2.0. Version 7.2.0 contained a partial fix, but the advisory says that remediation was incomplete. At the time of writing, the advisory does not name a fully fixed version. The flaw is not listed in CISA's Known Exploited Vulnerabilities catalogue and we are not aware of reports of attacks.

At a glance: CVE-2026-136240 (PHP Object Injection). Critical · CVSS 9.1. Exploited: No known attacks yet (not in CISA KEV). Affected: PDF Invoice for WooCommerce + Drag and Drop Template Builder, all versions up to 7.2.0. What to do: No complete fix named yet. Restrict guest checkout and watch for an update.

What is affected

  • Plugin: PDF Invoice for WooCommerce + Drag and Drop Template Builder for WordPress
  • Versions: all versions up to and including 7.2.0
  • Conditions for exploitation: guest checkout must be enabled, and the store must offer a payment method that moves orders to on-hold status, such as the stock WooCommerce Direct Bank Transfer option

What goes wrong

PHP can turn stored data back into live objects through a process called deserialisation. If a plugin does this with data supplied by a visitor, an attacker can feed it a crafted object. This is called PHP Object Injection.

In this plugin, untrusted input from the checkout flow ends up being deserialised. The 7.2.0 update added an escaping function, escape_pdf_note(), but only to the customer note path. The billing address path in the plugin's WooCommerce shortcodes file was left unpatched, so the same weakness is still reachable through that route.

On its own, the plugin does not contain a known "POP chain", the set of existing code that an injected object needs in order to do real harm. The advisory says that without such a chain, the flaw has no impact. The risk comes from other software on the site.

Why it matters

Most WordPress stores run many plugins and a theme. If any of them contains a usable POP chain, an attacker could use this flaw to delete arbitrary files, retrieve sensitive data or execute code on the server, depending on the chain present. Site owners rarely know whether their other plugins contain such chains, so it is safest to treat the flaw as serious.

The conditions are also common in real shops. Guest checkout and bank transfer payments are popular settings, especially for smaller stores. Because no login is needed, anyone who can place an order may be able to reach the vulnerable code.

It is also worth noting that some sites may have updated to 7.2.0 believing the issue was resolved. According to the advisory, that version is still vulnerable.

What to do now

  • Check whether you use the plugin and which version is installed. Any version up to and including 7.2.0 is affected, including 7.2.0 itself.
  • Watch for a new release from the plugin developer that fixes the billing address path, and apply it as soon as it is available. Check the changelog to confirm it addresses CVE-2026-136240.
  • Reduce exposure in the meantime. Exploitation needs both guest checkout and an on-hold payment method. Consider disabling guest checkout, or temporarily disabling payment methods such as Direct Bank Transfer, if your business can manage without them.
  • Deactivate the plugin if you can generate invoices another way until a full fix ships.
  • Review your other plugins and themes. Remove anything unused and keep the rest up to date, since the real damage depends on code elsewhere on the site.
  • Look for warning signs such as unexpected files, missing files, new admin users or odd guest orders with unusual billing address details, and keep recent backups.

If you manage several WooCommerce stores, add this plugin to your update monitoring and recheck once the developer publishes a release that covers the billing address path.

Not sure if this affects you? Talk to us and we will check your sites and servers and plan the update with you.

Sources