
Unofficial must-use plugin that mitigates CVE-2026-104246 in Contact Form 7 Signature Addon 4.2.2
Unofficial fix for CVE-2026-104246 in Contact Form 7 Signature Addon 4.2.2, delivered as a single-file WordPress must-use plugin.
Contact Form 7 Signature Addon by Breizhtorm adds a signature field to Contact Form 7. Visitors sign by hand on a canvas, and the signature is sent with the form's e-mail, so a form can be submitted signed.
Versions up to 4.2.2 of that plugin have a security flaw, CVE-2026-104246: a crafted submission can make a form e-mail an unrelated file from wp-content. The plugin has no fixed release. This file blocks the flaw without changing the addon's own files, and signing keeps working as before.
[!WARNING] Use at your own risk. This is an unofficial, independent patch. It is not written, reviewed or endorsed by Breizhtorm, by the Contact Form 7 project, by the authors of any other plugin named here, or by WordPress.org. It is provided "as is", without warranty of any kind. You install and use it entirely on your own responsibility. Test it on a staging copy of your site and keep a backup. It reduces one specific risk; it does not make a site secure and it is not a substitute for an official fix or for replacing an unmaintained plugin.
As of 12 November 2026:
If an official fixed version appears, install it and remove this file.
The file loads before all normal plugins, then checks for each problem below whether it is still present on the site. It acts only where it is.
| Problem | Plugin | Counted as present when | What this file does |
|---|---|---|---|
| CVE-2026-104246 | Contact Form 7 Signature Addon (Breizhtorm) | The addon is active and is version 4.2.2 or older, or the flawed code is still in its files | Applies the patch |
| CVE-2026-94589 | Extensions For CF7 (HT Plugins), folder extensions-for-cf7 | That plugin is active in a version older than 3.4.6 | Shows a warning to update to 3.4.6. No patch |
| CVE-2026-25863 | Conditional Fields for Contact Form 7 | That plugin is active in a version older than 2.7.3 | Shows a warning to update to 2.7.3. No patch |
The second and third problems were fixed by their own authors. Updating is the fix, so this file only detects and warns.
CVE-2026-94589 belongs to the HT Plugins plugin. It is not in Conditional Fields for Contact Form 7 and not in the Breizhtorm addon.
The addon builds an e-mail attachment path from the value posted in a signature field. The patch has four layers:
inline and attachment options are read from the form configuration, not from the request. Stored signature files get a random token in their name.Layers 2 and 4 keep working even if the addon's handlers cannot be unhooked. The status page then shows "Present - partly patched".
If a version of the addon newer than 4.2.2 is installed and the flawed code is no longer found, the patch is not applied. That check is a text match on the addon's code. Treat it as an estimate, not as proof.
cf7-security-patches.php from the latest release.wp-content/mu-plugins/. Create the folder if it does not exist.There is nothing to activate. A must-use plugin cannot be installed from Plugins > Add New.
| Status | Meaning |
|---|---|
| Not relevant | The plugin is not active. Nothing is done |
| Not present | The plugin is active in a fixed version, or the flawed code was not found. Nothing is done |
| Present - patched | The problem is present and the patch is fully applied |
| Present - partly patched | The addon's handlers could not be replaced. Crafted values are still blocked; the other hardening is not in effect |
| Present - NOT patched | The patch was switched off in wp-config.php |
| Present - update needed | Update that plugin to its fixed version. This file only warns |
To switch it off without deleting the file, add this line to wp-config.php:
define( 'CF7_SECURITY_PATCHES_DISABLED', true );
The site is exposed again while that line is there.
To remove it, delete the file. One small row named cf7secpatches_sigcode may remain in the options table and can be deleted.
attachment and inline options keep working.uploads/wpcf7_signatures/ keep their guessable names and stay publicly reachable. Signature files are never deleted automatically.