Ultra Addons for Contact Form 7 PDF Flaw: Which Version You Actually Need

Ultra Addons for Contact Form 7 adds around twenty extras to the plain Contact Form 7 plugin: multistep forms, conditional fields, signatures, a submissions database, and a PDF generator that turns each submission into a PDF. It runs on more than 60,000 sites. In early November a critical bug in that PDF generator was published, rated 9.8 out of 10. Since then the plugin has shipped two more releases that change the same PDF code, and most write-ups still name the first fix as the version you need.
Last updated 23 November 2026. We read the CVE record, the Patchstack entry, the Wordfence entries and the plugin’s changelog. We downloaded versions 3.5.54 to 3.5.59 from WordPress.org and compared the code. We did not try the exploit, and we have no reports of sites hacked through this bug.
The short version
- Update Ultra Addons for Contact Form 7 to 3.5.59, the current release (20 November). If you need a floor, use 3.5.58, not 3.5.55. The 3.5.58 changelog lists another “PDF security vulnerability” fix.
- The bug only matters if you turned on the PDF Generator addon and set up a form to make PDFs. The PDF Generator, Database and Digital Signature addons are all off until you switch them on.
- If you use the Digital Signature addon, signatures saved before 3.5.58 were encrypted with a key that is the same on every site. The update doesn’t re-encrypt them. Details below.
What was found
The bug is CVE-2026-102435, published on 2 November 2026. It affects every version up to and including 3.5.54. The records call it “unauthenticated PHP object injection to arbitrary file deletion”. In plain words: someone with no account fills in your public form with a crafted answer. When the plugin builds the PDF, that answer can make the server delete a file the attacker chooses. Delete wp-config.php and WordPress starts its setup screen again, and from there an attacker can take the site over. That’s why the score is so high.
It isn’t the plugin’s first upload or file bug this year. Wordfence also lists an unauthenticated file upload through the Signature field (fixed after 3.5.50) and a missing permission check (fixed after 3.5.34). If your copy hasn’t been updated in months, you are behind on all three.
On exploitation: we found no confirmed attacks, and the CVE isn’t in CISA’s Known Exploited Vulnerabilities list as we write this. That can change quickly once a fix is public, because the fix shows attackers exactly where to look.
What the fix changed
The PDF generator is built on mPDF, a widely used PHP library that turns HTML into PDF. The plugin takes your PDF template, swaps in the answers from the form, and hands the resulting HTML to mPDF. Up to 3.5.54 the answers went into that HTML exactly as visitors typed them.
Inside mPDF, some content is stored as packed-up PHP data and unpacked again later, using PHP’s unserialize(). Unpacking data that an outsider can influence is a well-known way to break into PHP apps, and this CVE belongs to that family. Here is what changed in each release:
| Version | What changed in the PDF code |
|---|---|
| 3.5.55 | Form answers are cleaned before they go into the PDF: mPDF’s internal marker characters are removed, phar://, file://, data:// and similar addresses are stripped, and HTML is escaped. The plugin also edited its own copy of mPDF so one unserialize() call can no longer create PHP objects, and tightened mPDF’s check for dangerous file addresses. |
| 3.5.57 (1 Nov) | A second unserialize() in the bundled mPDF got the same treatment. The PDF file name, which can include form answers, now goes through WordPress’s file-name cleaner. |
| 3.5.58 (20 Nov) | Changelog: “Fixed: PDF security vulnerability”. A new mPDF network client blocks requests to the server itself, private networks and cloud metadata addresses. This class of bug is called server-side request forgery. The signature encryption key also changed (next section). |
| 3.5.59 (20 Nov) | Only a multistep file upload fix. |
One detail matters for anyone who maintains plugins. The upstream mPDF release, 8.3.1, still has both of those unserialize() calls unchanged. We checked the current development branch on GitHub as well. Ultra Addons fixed this by patching its bundled copy. A plain composer update would quietly bring the old code back. If you ship mPDF yourself, never pass visitor input to it unescaped, and treat the library’s defaults as unsafe for that job.
The signature key everyone shared
The Digital Signature addon saves each signature as an encrypted file in wp-content/uploads/uacf7-uploads/. Up to 3.5.57, the key used to encrypt those files was the text AES-256-CBC. That is the name of the encryption method, not a secret, and it was the same on every site. Anyone who got hold of one of those files and read the plugin’s public source code could decrypt it.
3.5.58 now derives the key from your site’s own secret salts in wp-config.php, so new signatures are properly protected. Older files are not re-encrypted. When the new key fails, the plugin tries the old one, so it can still show them. Each file name includes a random part, so nobody can simply guess the address, but the files were never really secret.
If signatures on your site are sensitive, such as consent forms or contracts, either block direct web access to uacf7-uploads at the server, or export what you need and delete the old .enc files. If you have to keep them, keep them somewhere that isn’t publicly served. We covered the same “uploads are public by default” problem for other form plugins in our post on form uploads with public links.
What to do today
- Check the version. Plugins → Installed Plugins → Ultra Addons for Contact Form 7. Update to 3.5.59.
- Check which addons are on. UACF7 Addons → All Addons in wp-admin. If PDF Generator, Database or Digital Signature are on but none of your forms use them, switch them off. An addon that’s switched off can’t be attacked.
- If PDF Generator was on before you updated, make sure your files are still there. The bug deletes files, it doesn’t plant them, so the first sign is usually something missing. Look for a setup screen where your site should be, or a 500 error. Compare
wp-config.php,.htaccessand your uploads with your last backup. - Read your server’s error log from early November on. Look for PDF generation errors around form submissions. A crafted answer that failed often leaves an mPDF error behind.
- If you can’t update today, switch the PDF Generator addon off. A WAF rule from your security plugin can help in the meantime. Virtual patching blocks known attack requests, but the update is the real fix.
The bigger lesson: Contact Form 7 plus add-ons
Contact Form 7 is deliberately small. It sends an email and stops. It doesn’t even keep the submissions, as we explain in does Contact Form 7 store form data?. Everything else comes from add-ons, so a typical CF7 site runs three or four extra plugins from different authors, each with its own update schedule and its own bugs. An add-on bundle like Ultra Addons swaps four authors for one, but it puts twenty-odd features behind one switchboard. Here, a feature most sites never switched on (PDF generation) carried the most serious bug.
That isn’t a reason to panic about plugin counts. We looked at that question in how many WordPress plugins is too many. What matters is how much code you’re running, not how many plugins. Once a year, open every addon screen and switch off anything that isn’t doing a job.
Where to go next
- If you turned on the Database addon only to keep a copy of submissions, compare your options in the best Contact Form 7 database plugins.
- If you’re thinking of leaving Contact Form 7 altogether, our Contact Form 7 alternatives guide compares the form builders that ship storage, file handling and PDFs in one plugin.
- For another form plugin bug this autumn where attackers really did break in, read how to check a site after the Ninja Forms XSS campaign.
Frequently asked questions
Is updating Ultra Addons for Contact Form 7 to 3.5.55 enough?
It fixes the bug in CVE-2026-102435, but 3.5.57 and 3.5.58 changed the same PDF code again, and the 3.5.58 changelog lists another PDF security fix. Update to 3.5.59, the current release, or at least 3.5.58.
Am I affected if I never used the PDF Generator?
Not by this CVE. It needs the PDF Generator addon switched on and a form set up to make PDFs, and the addon is off until you switch it on. Update anyway, because the same plugin had separate upload and permission bugs this year.
Are my old signature files safe after the update?
New signatures use a key based on your site’s own salts. Signature files saved before 3.5.58 still use the old key, which is the same on every site, and the update doesn’t re-encrypt them. Block direct access to the uacf7-uploads folder, or move or delete the old files if they’re sensitive.