Contact Form to Any API mapping metadata permits contributor stored XSS
Contact Form to Any API through 3.0.6 lets an authenticated Contributor store an attribute-breakout payload in the cf7anyapi_form_field post meta of a cf7_to_any_api configuration. When its mapping fields are loaded, the logged-in admin AJAX action cf7_to_any_api_get_form_field accepts form_id and post_id, reads that metadata, and concatenates each stored value directly into an HTML input value attribute without output escaping. Inserting the returned form-field HTML into the settings interface can therefore execute the stored script in a user's browser. The authoritative record does not disclose a more specific victim-navigation sequence.
- Component
- Contact Form to Any API
- Plugin slug
contact-form-to-any-api- Affected
- <= 3.0.6
- Safe version
3.0.7- Published
- Jul 29, 2026
This CVE was published Jul 29, 2026 and is one of 6 known issues for this plugin.
Update, patch or deactivate.
Update Contact Form to Any API to 3.0.7 or later. Review cf7_to_any_api configuration metadata for unexpected markup if Contributors could edit configurations while 3.0.6 or earlier was active.
A safe version is available, so updating to that version or later is the preferred remediation. If an immediate update is not practical, consider a targeted application patch or temporarily restricting the affected functionality.
Deactivate only when warranted by your risk profile, or when advised by your hosting provider in the limited circumstances where the vulnerability cannot otherwise be mitigated. If you’re unsure which action is appropriate, contact Fused or your hosting provider for guidance.
Technical description
The Contact Form to Any API plugin for WordPress is vulnerable to Stored Cross-Site Scripting via 'cf7anyapi_form_field' Post Meta in all versions up to, and including, 3.0.6 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
CVE / CNA vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N