CVE-2026-131822
The Contact Form to Any API plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'your-message (any CF7 form field)' parameter in all vers…
Impact
The Contact Form to Any API plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'your-message (any CF7 form field)' parameter in all versions up to, and including, 3.0.7 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. The malicious payload is stored via a single unauthenticated POST to Contact Form 7's public REST feedback endpoint, which uses permission_callback __return_true and requires no authentication or prior interaction to submit.
An attacker can exploit this over the network, without logging in, without any action by a user. If it succeeds: low risk of data being read, low risk of data or systems being changed. The attack can reach beyond the vulnerable component itself.
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| IT Path Solutions PVT LTD | Contact Form to Any API | Version 0 ≤3.0.7 |
| Itpathsolutions | Contact Form to Any API | through 3.0.7 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://www.wordfence.com/threat-intel/vulnerabilities/id/3c0753da-2807-46d1-b002-d557e7f3bf13?source=cve
- https://plugins.trac.wordpress.org/browser/contact-form-to-any-api/tags/3.0.7/admin/partials/cf7-to-any-api-admin-entries.php#L115
- https://plugins.trac.wordpress.org/browser/contact-form-to-any-api/tags/3.0.7/admin/class-cf7-to-any-api-admin.php#L759
- https://plugins.trac.wordpress.org/browser/contact-form-to-any-api/tags/3.0.7/admin/class-cf7-to-any-api-admin.php#L640
- https://plugins.trac.wordpress.org/browser/contact-form-to-any-api/tags/3.0.7/includes/class-cf7-to-any-api.php#L181
- https://plugins.trac.wordpress.org/changeset?reponame=&old=3811674%40contact-form-to-any-api&new=3811674%40contact-form-to-any-api
- https://github.com/advisories/GHSA-hc58-c2qw-mg6w
- https://nvd.nist.gov/vuln/detail/CVE-2026-131822