Strategic Overview
- Status
- Patched in 5.9.5
- Affected Plugin
- Contact Form 7
- Affected Version
<= 5.9.4- CVSS
- 6.1Medium
- Weakness type
- CWE-601 · URL Redirection to Untrusted Site ('Open Redirect')
- CVE
CVE-2024-4704
At a glance
CVE-2024-4704 is a medium-severity URL Redirection to Untrusted Site ('Open Redirect') vulnerability in the Contact Form 7 WordPress plugin, affecting versions <= 5.9.4. It carries a CVSS score of 6.1 (reachable over the network; low attack complexity). Exploitation requires no authentication. The issue is fixed in version 5.9.5; sites on affected versions should update now. Disclosed June 2024, reported by William Bastos.
Vulnerability Overview
The Contact Form 7 plugin for WordPress is vulnerable to Open Redirect in all versions up to, and including, 5.9.4. This is due to insufficient validation on the redirect url supplied via accessing the contact form with a spoofed page. This makes it possible for unauthenticated attackers to redirect site users to potentially malicious sites if they can successfully trick them into performing an action.
Technical Analysis
The vector marks this flaw as remotely reachable over the network, with low attack complexity — no special timing or configuration is needed, and no privileges on the target site.
CWE-601: URL Redirection to Untrusted Site ('Open Redirect')
Reaching this weakness in Contact Form 7 <= 5.9.4 takes no account at all. An open redirect is a page that takes a destination from the request and sends the browser there without checking that the destination belongs to the site.
A link that starts on a trusted domain finishes on an attacker's, which is what makes phishing and consent-screen abuse credible to the person clicking it. For Contact Form 7 the fix is 5.9.5: builds <= 5.9.4 are affected, anything from 5.9.5 onward is not.
Remediation
Update to version 5.9.5, or a newer patched version
How does WordSec protect against this?
Requests carrying this pattern arrive without a session, so nothing upstream of the firewall gets a chance to reject them: WordSec's web application firewall inspects request payloads before WordPress loads them. None of that substitutes for the fix: Contact Form 7 5.9.5 closes this, and updating the plugin is the step that ends it.
- Firewall
- Login Security
- Alerts
External References
Related records
Other vulnerabilities in Contact Form 7
- 9.8Contact Form 7 <= 3.5.2 Arbitrary File Upload
- 8.1CVE-2020-35489: Contact Form 7 <= 5.3.1 Arbitrary File Upload
CVE-2020-35489 - 6.6CVE-2023-6449: Contact Form 7 <= 5.8.3 Arbitrary File Upload
CVE-2023-6449 - 6.3CVE-2018-20979: Contact Form 7 <= 5.0.3 Authorization Bypass
CVE-2018-20979 - 6.1CVE-2024-2242: Contact Form 7 <= 5.9 Reflected Cross-Site Scripting
CVE-2024-2242 - 5.3CVE-2025-3247: Contact Form 7 <= 6.0.5 Order Replay Vulnerability
CVE-2025-3247 - 5.3CVE-2014-2265: Contact Form 7 < 3.7.2 CAPTCHA Bypass
CVE-2014-2265
Vulnerability data © Defiant, Inc., provided under the Wordfence Intelligence T&C