AI, Development & Tech News

Security vulnerabilities in the WooCommerce invoice plugin: The update requires PHP 8.1

261128 woocommerce pdf invoices security vulnerabilities cover image
Skip to table of contents
Contents 4 sections
  1. How does an attack work?
  2. Why doesn't every shop get the update?
  3. What this means for you
  4. Sources

The security vendor Wordfence has disclosed two vulnerabilities in PDF Invoices & Packing Slips for WooCommerce. The plugin from WP Overnight, which creates invoices and packing slips for orders, runs on more than 300,000 websites according to WordPress.org. Both flaws exist in all versions up to and including 6.0.0 and have been fixed since version 6.0.1 of November 25.

A shop is vulnerable if E-Documents are enabled there, meaning the function for electronic invoices in XML format. The function is turned off by default. The update requires the programming language PHP version 8.1 or higher and WooCommerce 7.0 or higher.

How does an attack work?

According to Wordfence, manipulated billing address details are enough for the attack. The attacker does not need a user account. The shop stores the injected script code. Later, the browser executes this code when someone in the administration opens the edit page of the order.

For the first vulnerability, CVE-2026-130321, Wordfence names first name, company, both address lines and the city as entry points. In addition, the format UBL PEPPOL BIS 3.0 must be active, a variant of the XML invoice. For the second, CVE-2026-137122, the first address line is affected, and the attack already works if any document format is selected. Both are rated high on the CVSS scale for the severity of security vulnerabilities, with 7.2 out of 10 points.

Wordfence published vulnerabilities for the same plugin on September 30 and October 30, in which foreign code could be injected via invoice fields. An update from October is no longer sufficient. Even version 6.0.0 of November 16 is vulnerable. Wordfence does not say whether attackers are already exploiting the two new flaws.

Why doesn't every shop get the update?

WordPress only installs the update if the required PHP version is running on the server. With PHP 7.4 or 8.0, the plugin list shows the new version, but instead of the update link there is the notice about the incompatible PHP version. For the older 5.16 series, a fix is still missing.

According to the PHP statistics from WordPress.org, around 22 percent of the recorded WordPress installations use a PHP version older than 8.1. As for the plugin itself, according to its version statistics, on November 28 almost two thirds of the installations still had no version from the 6.0 series.

The minimum version PHP 8.1 also no longer receives security updates since December 31, 2025, and for 8.2 they end on December 31, 2026. It is therefore best to switch your server to 8.3 or newer, as WordPress.org recommends, and to test your plugins beforehand.

What this means for you

It is best to check today in the plugin list which version is running in your shop. With PHP 8.1 or newer, you install 6.0.1 after creating a backup of your website. You should also bring the plugin's extensions up to date right away, because since version 6.0.0 outdated versions are automatically deactivated.

PDF Invoices: Your path depending on PHP version
Only version 6.0.1 of November 25 closes both vulnerabilities
PHP 8.1 or newer
  • Back up the website, then install version 6.0.1
  • WooCommerce must be running at least version 7.0
  • Also update the plugin's extensions
PHP older than 8.1
  • WordPress does not install version 6.0.1
  • Turn off E-Documents until the PHP changeover
  • It is best to switch PHP to 8.3 or newer
Turning it off only helps against the two new flaws, not against older ones
Sources: Wordfence, WordPress.org

On a server with older PHP, it is best to open the menu item "PDF Rechnungen" under WooCommerce and switch to the "E-Dokumente" tab. There you remove the checkmark next to "Aktiviere elektronische Dokumente". Then the prerequisite for both attacks is no longer met. The plugin can continue to create PDF invoices.

Until December 31, 2026, you may still send business customers in Germany a PDF instead of an e-invoice if they agree. The basis is the transitional rule in ?? 27 paragraph 38 UStG. Before turning it off, it is best to ask whether customers expect the XML file. Which businesses must issue e-invoices from January 2027 is explained by the TutKit news on e-invoicing.

Disabling it only helps against the two new bugs; in versions before 5.16.6, older security vulnerabilities also remain open. Therefore, plan the switch to a newer PHP version soon. Also check the user list for unknown accounts, because injected code would run with all the rights of the person currently logged in.

Wordfence published the reports on both security vulnerabilities on November 26, 2026.

Sources

Comments

Register and comment.

Continue reading

You might also like

View all articles →