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

Medium 6.1 CWE-601Fixed in 5.15.0
ID
WPSEC-2026-4361
Plugin
Double Opt-In for Contact Form 7 – Secure, GDPR-Compliant Email Verification (double-opt-in)
Affected
all versions before 5.15.0
Remediation
Update to 5.15.0 or later.
CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weakness
CWE-601
Usage
Plugin Low · Affected versions Low among sites WPSec scans, 2026-12-02
Attack surface
Double Opt-In for Contact Form 7 on WPSec AttackSurface
Fix released
Published

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

Published by WPSec. Provided as is, without warranty. Corrections: contact us.

This advisory as JSON, OSV or Markdown · All advisories: JSON, OSV, RSS

License: CC BY 4.0