WordPress security changelog
HIGH CVE-2026-1540 Deferred

Spam Protect for Contact Form 7: Code execution

Spam Protect for Contact Form 7 is affected by code execution. Exposure depends on how the affected operation is made reachable by the site. Successful exploitation can run attacker-controlled code in the WordPress hosting account. The published affected range is < 1.2.10.

CVE / CNA score 7.2 CVSS 3.1 · 134c704f-9b21-4f2e-91b3-4a467353bcc0
NVD score Pending NVD has not published its own CVSS assessment.
Component
Spam Protect for Contact Form 7
Plugin slug
spam-protect-for-contact-form-7
Affected
< 1.2.10
Safe version
1.2.10
Published
Apr 02, 2026
Weakness
CWE-94 — Improper Control of Generation of Code ('Code Injection')

This CVE was published Apr 02, 2026 and is one of 1 known issue for this plugin.

Update, patch or deactivate.

Update Spam Protect for Contact Form 7 to 1.2.10 or later, or disable and remove it until a fixed version is available.

A safe version is available, so updating to that version or later is the preferred remediation. If an immediate update is not practical, consider a targeted application patch or temporarily restricting the affected functionality.

Deactivate only when warranted by your risk profile, or when advised by your hosting provider in the limited circumstances where the vulnerability cannot otherwise be mitigated. If you’re unsure which action is appropriate, contact Fused or your hosting provider for guidance.

Technical description

The Spam Protect for Contact Form 7 WordPress plugin before 1.2.10 allows logging to a PHP file, which could allow an attacker with editor access to achieve Remote Code Execution by using a crafted header

CVE / CNA vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

Primary and upstream sources