CVE-2026-136240 in PDF Invoice for WooCommerce and Drag and Drop Template Builder Plugininfo

Summary

by MITRE • 11/26/2026

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 including, 7.2.0 via deserialization of untrusted input . This makes it possible for unauthenticated attackers to inject a PHP Object. No known POP chain is present in the vulnerable software, which means this vulnerability has no impact unless another plugin or theme containing a POP chain is installed on the site. If a POP chain is present via an additional plugin or theme installed on the target system, it may allow the attacker to perform actions like delete arbitrary files, retrieve sensitive data, or execute code depending on the POP chain present. The incomplete remediation in version 7.2.0 applied escape_pdf_note() only to the customer_note path; the billing address path at woocommerce/shortcodes.php:975–978 remains unpatched, and exploitation requires guest checkout to be enabled along with a payment method that transitions orders to on-hold status (such as the stock WooCommerce Direct Bank Transfer option).

Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.

Analysis

by VulDB Data Team • 11/26/2026

The vulnerability identified in the PDF Invoice for WooCommerce plugin affects all versions up to 7.2.0 and represents a critical PHP Object Injection flaw resulting from the deserialization of untrusted input. This security issue is classified under CWE-502, which denotes Deserialization of Untrusted Data, a category of vulnerabilities that allows attackers to manipulate internal application states by injecting malicious serialized objects into systems expecting safe data formats. The root cause lies in the plugin's handling of user-supplied data during the generation of PDF invoices for WooCommerce orders, where specific input fields are passed directly to PHP’s unserialize function without adequate validation or sanitization mechanisms.

The technical execution of this exploit requires a specific set of environmental conditions within the WordPress installation. Attackers must have guest checkout enabled and utilize a payment method that transitions orders to an on-hold status, such as the WooCommerce Direct Bank Transfer option. Under these circumstances, the application processes order details including billing information. While version 7.2.0 attempted to mitigate this risk by applying escape_pdf_note exclusively to the customer note path, it failed to address the billing address path located in woocommerce/shortcodes.php at lines 975 through 978. This incomplete remediation leaves a persistent attack vector where unauthenticated users can inject serialized PHP objects into the billing address field during the order creation process.

The operational impact of this vulnerability is contingent upon the broader ecosystem of the targeted WordPress site. The plugin itself does not contain any existing PHP Object Injection (POP) chains, meaning that by itself, the injection cannot lead to direct code execution or arbitrary file manipulation within the context of the vulnerable plugin alone. However, in a typical WordPress environment where multiple plugins and themes are active, it is highly probable that another installed component contains exploitable POP chains. If such a chain exists on the target system, an attacker can leverage this deserialization flaw to trigger those external gadgets. This capability transforms a seemingly benign input error into a severe remote code execution vector or allows for actions like deleting arbitrary files and retrieving sensitive data from the server.

From a threat intelligence perspective, this vulnerability aligns with ATT&CK technique T1059, Command and Scripting Interpreter, specifically when exploited via PHP object injection to achieve initial access or privilege escalation through gadget chains. It also relates to T1203, Exploitation for Client Execution if the resulting actions lead to client-side impacts, though in this server-side context, it primarily facilitates backend compromise. The lack of a native POP chain within the plugin itself is a mitigating factor that reduces immediate risk but does not eliminate the severity due to the high likelihood of co-located vulnerable components in standard WordPress deployments.

To mitigate this vulnerability, administrators should immediately update the PDF Invoice for WooCommerce plugin to version 7.2.1 or later, where the billing address path has been properly secured against deserialization attacks. Until an official patch is applied, site operators can implement a workaround by disabling guest checkout if feasible, thereby preventing unauthenticated users from triggering the vulnerable code paths during order creation. Additionally, auditing installed plugins and themes for known POP chains and removing unnecessary components reduces the attack surface available to attackers attempting to chain this deserialization flaw with other vulnerabilities. Regular security audits focusing on input validation practices in PHP applications are essential to prevent similar issues across the WordPress ecosystem.

Responsible

Wordfence

Reservation

11/24/2026

Disclosure

11/26/2026

Moderation

accepted

CPE

ready

EPSS

0.01047

KEV

no

Activities

very low

Sources

Might our Artificial Intelligence support you?

Check our Alexa App!