# Double Opt-In for Contact Form 7 <= 5.16.0 - Cross-Site Request Forgery via Admin App REST Request Path

- **ID:** WPSEC-2026-4720
- **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:** from 5.1.1 before 5.16.1
- **Fixed in:** 5.16.1 (Update to 5.16.1 or later.)
- **Severity:** High 8.8 (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H)
- **Weakness:** CWE-352
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-12-06)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/double-opt-in
- **Fix released:** 2026-12-05
- **Published:** 2026-12-06
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4720/

## Description

The Double Opt-In for Contact Form 7 plugin for WordPress is vulnerable to Cross-Site Request Forgery in all versions up to, and including, 5.16.0. This is due to the plugin's React admin app putting values from the address bar (route parameters such as the opt-in ID or the form integration and ID) into REST API request paths without validating them. Dot-segments and query strings in those values let the request leave the plugin's own REST routes, and the request carries the administrator's REST nonce. This makes it possible for unauthenticated attackers to make the admin app send requests to other WordPress REST API endpoints with the administrator's permissions, including state-changing requests through method-override parameters, which could modify site data or settings. The attacker must trick a logged-in site administrator into opening a crafted link.

## References

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

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

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.
