WooCommerce PDF Invoice Plugin Flaw: Update Now
If your store runs the PDF Invoice for WooCommerce + Drag and Drop Template Builder plugin at version 7.1.1 or older, update it to the latest version today, because a critical flaw lets a stranger run code on your server without logging in.
This post is for store owners, agencies and anyone who looks after a WooCommerce shop. You will learn what the flaw is in plain English, how to check whether you are affected, the exact steps to fix it, and how to look for signs that someone got in first.
What happened
The flaw is tracked as CVE-2026-109220. (A CVE is a public ID number for a known security problem, so everyone can talk about the same bug.) It was published on 2026-10-31. The record lists it as Critical, with a CVSS score of 9.8 out of 10. CVSS is a standard scoring system for how serious a bug is.
The weakness type is CWE-502, which means "deserialization of untrusted data." The National Vulnerability Database (NVD) record for this CVE says the description covers all versions up to and including 7.1.1. The NVD shows its status as "Deferred," so read the record yourself for any later updates.
The NVD record does not say whether this flaw is being used in real attacks. That can change, so do not wait on that point.
What the flaw is, in plain English
When a customer checks out, WooCommerce lets them type an order note. The record calls this the customer_note field. This plugin takes that note and puts it into the invoice, then turns the invoice into a PDF.
According to the NVD description, the note is not cleaned properly on the way. Somewhere in the PDF building steps, the text gets turned back into live markup. Later, a PDF library called mPDF passes it to a PHP function named unserialize() without checking it first.
This class of bug is called PHP object injection. Here is the idea:
- PHP can pack data into a text string ("serialize") and unpack it later ("unserialize").
- If an attacker controls the string being unpacked, they can make PHP build objects the developer never planned for.
- Those objects can trigger code that already lives in the site. In the worst case, the attacker runs their own commands.
The OWASP page on PHP object injection and the PHP manual's warning on unserialize() both explain why this is risky. The PHP manual says not to pass untrusted input to it.
We are deliberately not describing how to build an attack. You do not need that to protect your store.
Why the score is so high
The CVSS string in the record is AV:N/AC:L/PR:N/UI:N. In plain words:
- AV:N: it can be reached over the internet.
- AC:L: it is not tricky to attempt.
- PR:N: the attacker needs no account.
- UI:N: nobody has to click anything.
- C:H/I:H/A:H: the possible damage to secrecy, integrity and availability is high.
The NVD description also says an attacker can reach the code path on a default install. They would place an ordinary checkout through WooCommerce's public Store API (POST /wc/store/v1/checkout) using Direct Bank Transfer or cheque. Those payment methods move an order to "on-hold" status, which fires the plugin's invoice-generation hook.
So the entry point is the same checkout door your real customers use. No special access is needed.
Is my WooCommerce store at risk?
Use this table to decide.
| Your situation | Likely exposure | What to do |
|---|---|---|
| Plugin installed, active, version 7.1.1 or older | Affected per the NVD record | Update now, then check for signs of compromise |
| Plugin installed but deactivated | The vulnerable code is not running | Delete it if you do not need it, or update before reactivating |
| Plugin active, version higher than 7.1.1 | Outside the listed range | Read the changelog to confirm, and keep updating |
| Plugin not installed | Not affected by this CVE | Keep the rest of your plugins current |
| You use a different invoice plugin | Not covered by this CVE | Check that plugin's own updates |
The NVD description names Direct Bank Transfer and cheque as the way to trigger the invoice hook. Do not read that as "I only use Stripe, so I am safe." Treat any store with the plugin at 7.1.1 or older as exposed until updated.
What to do right now
1. Check your version
In WordPress, go to Plugins > Installed Plugins and find PDF Invoice for WooCommerce + Drag and Drop Template Builder. The version number sits under the name.
If you or your host use WP-CLI (a command line tool for WordPress), this shows it. The plugin's folder name, pdf-for-woocommerce, comes from the references in the NVD record.
wp plugin get pdf-for-woocommerce --fields=name,status,version
2. Take a backup
Make a full backup of files and database first. Your host's backup tool or a backup plugin both work. This lets you roll back if the update breaks something.
3. Update the plugin
Go to Dashboard > Updates or Plugins, and click Update now on the plugin. Or with WP-CLI:
wp plugin update pdf-for-woocommerce
The NVD record does not list a fixed version. Its references include a download for version 7.2.0, but the record does not say outright that this is the fix. So the safe rule is: update to the latest version available, make sure it is higher than 7.1.1, and read the plugin's changelog on its WordPress.org page for the vendor's own note about this issue.
4. If you cannot update yet
If no update shows up, or the update breaks your site, deactivate the plugin until you can fix it:
wp plugin deactivate pdf-for-woocommerce
You lose automatic PDF invoices for a while. That is a much smaller problem than a server takeover. Turning off bank transfer and cheque payments might block the path in the record, but we would not rely on that alone. Deactivating the plugin is the safer stopgap.
5. Test your checkout
After updating, place a test order and confirm the invoice still generates. Then delete the test order.
Check whether someone got in first
The flaw was published on 2026-10-31, but attackers can find a bug before it is public. Any store that has run version 7.1.1 or older should get a quick look, and your logs may reach back before that date. Here is a short checklist:
- Admin users. Go to Users and filter by Administrator. Remove anyone you do not recognize. With WP-CLI:
wp user list --role=administrator. - File integrity. Run
wp core verify-checksumsandwp plugin verify-checksums --all. They compare your files with the official copies and flag changes. (Premium plugins not hosted on WordPress.org may not be checkable.) - Odd orders. Look in WooCommerce > Orders for on-hold orders from strange names with unusually long or odd-looking order notes.
- Unknown files. Ask your host to scan for recently changed PHP files, especially in
wp-content/uploads, where PHP files should not normally exist. - Server logs. Ask your host for access logs showing
POSTrequests to/wp-json/wc/store/v1/checkout(or the equivalent route on your site) and look for spikes or repeated orders from one source.
If you find anything suspicious, do not just delete a file and move on. Follow our website hacked guide, change all admin, database and hosting passwords, and consider asking your host or a professional to help with cleanup.
How to avoid the next one
This kind of bug turns up in plugins regularly. You cannot stop them being found, but you can shorten your exposure:
- Turn on automatic updates for plugins you trust (Plugins > Installed Plugins > Enable auto-updates), and still check the site after big updates.
- Delete plugins you no longer use. Deactivated plugins can still leave files on disk.
- Keep a short list of what is installed and why, so you know what to check when news breaks.
- Run our free website security check for a passive look at your domain from the outside.
If you want a broader picture of your exposure, our guide Is my website hackable? walks through the common weak spots.
Key takeaways
- CVE-2026-109220 is a critical (CVSS 9.8) PHP object injection flaw in PDF Invoice for WooCommerce + Drag and Drop Template Builder, listed for all versions up to and including 7.1.1.
- The NVD description says an unauthenticated attacker could use an ordinary checkout, with bank transfer or cheque, to reach the bug and run code on the server.
- Update to the latest version (higher than 7.1.1) after taking a backup, and read the vendor changelog because the NVD lists no fixed version.
- If you cannot update, deactivate the plugin until you can.
- Afterward, check admin users, file checksums and odd orders for signs of earlier abuse.
Where a human audit fits
Updating closes this one hole. It does not tell you what else is open on your store. A Bug Circuit audit is a real person testing your website by hand and giving you a written report with each issue, its severity, evidence and fix steps. Our Essential plan costs $49 one-time for 1 website and 3 audits within a month.
To be clear about scope: an audit is a small-site manual test, not a compliance certificate or a multi-week enterprise engagement. There is no ongoing monitoring, and fixing is a separate service we quote per issue. If you want a human to look, it is there when you are ready.
Source: NVD entry for CVE-2026-109220.
A real human security engineer audits your whole site by hand and sends a full report: every issue, its severity, and the exact fix. From $49, with a 14-day money-back guarantee.