# Redirection for Contact Form 7 <= 3.2.18 - Authenticated (Editor+) Insecure Direct Object Reference to Arbitrary Post Trashing

- **ID:** WPSEC-2026-4021
- **Plugin:** Redirection for Contact Form 7 (`wpcf7-redirect`), https://wordpress.org/plugins/wpcf7-redirect/
- **Affected versions:** from 2.2.7 before 3.2.19
- **Fixed in:** 3.2.19 (Update to 3.2.19 or later.)
- **Severity:** Low 3.8 (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:L)
- **Weakness:** CWE-639
- **Usage among sites WPSec scans:** plugin High, affected versions High (as of 2026-11-26)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/wpcf7-redirect
- **Fix released:** 2026-11-25
- **Published:** 2026-11-26
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4021/

## Description

The Redirection for Contact Form 7 plugin for WordPress is vulnerable to Insecure Direct Object Reference via the wpcf7r_delete_action AJAX action in all versions up to, and including, 3.2.18, due to missing validation on a user-controlled post ID. The delete_action_post() handler checks only the generic Contact Form 7 edit capability and a nonce, then passes each requested post ID to wp_trash_post() without checking its post type or the user's permissions on that post. This makes it possible for authenticated attackers who can edit contact forms (Editor-level and above by default) to move posts to the trash that they could not otherwise delete, such as content types that require other capabilities (for example block templates, navigation menus, WooCommerce products or other plugins' admin-only content).

## References

- https://wpsec.com/vuln/WPSEC-2026-4021/
- https://plugins.svn.wordpress.org/wpcf7-redirect/tags/3.2.19/
- https://wordpress.org/plugins/wpcf7-redirect/

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

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.
