# Double Opt-In for Contact Form 7 <= 5.14.0 - Unauthenticated Open Redirect via Referer Header in Contact Form 7 Confirmation Emails

- **ID:** WPSEC-2026-4361
- **Plugin:** Double Opt-In for Contact Form 7 – Secure, GDPR-Compliant Email Verification (`double-opt-in`), https://wordpress.org/plugins/double-opt-in/
- **Affected versions:** all versions before 5.15.0
- **Fixed in:** 5.15.0 (Update to 5.15.0 or later.)
- **Severity:** Medium 6.1 (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N)
- **Weakness:** CWE-601
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-12-02)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/double-opt-in
- **Fix released:** 2026-12-01
- **Published:** 2026-12-02
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4361/

## Description

The Double Opt-In for Contact Form 7 plugin for WordPress is vulnerable to Open Redirect in all versions up to, and including, 5.14.0. The form URL used for the [doubleoptin_form_url] placeholder and, when no confirmation page is configured (the default), as the base of the confirmation link in double opt-in emails is taken from the Contact Form 7 submission's 'url' meta without checking its host. Contact Form 7 releases before 6.2.6 fill that value from the Referer header of the submission request and only check that it begins with the site's home URL, so a host such as example.com.attacker.example passes. This makes it possible for unauthenticated attackers to submit a form for any recipient and have the site send a genuine confirmation email whose link points to an attacker-controlled host and carries the opt-in token, on sites running a Contact Form 7 release before 6.2.6.

## References

- https://wpsec.com/vuln/WPSEC-2026-4361/
- https://plugins.svn.wordpress.org/double-opt-in/tags/5.15.0/
- https://wordpress.org/plugins/double-opt-in/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-4361/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
