# Contact Form Email <= 1.3.76 - Authenticated (Editor+) Stored Cross-Site Scripting via Custom JavaScript Setting

- **ID:** WPSEC-2026-4323
- **Plugin:** Contact Form Email (`contact-form-to-email`), https://wordpress.org/plugins/contact-form-to-email/
- **Affected versions:** from 1.2.25 before 1.3.77
- **Fixed in:** 1.3.77 (Update to 1.3.77 or later.)
- **Severity:** Medium 5.5 (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:N)
- **Weakness:** CWE-79
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-12-01)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/contact-form-to-email
- **Fix released:** 2026-11-30
- **Published:** 2026-12-01
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4323/

## Description

The Contact Form Email plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the custom JavaScript editor in all versions up to, and including, 1.3.76 due to the save_edition() function only requiring the edit_pages capability to save arbitrary JavaScript that the plugin serves to site visitors. This makes it possible for authenticated attackers with Editor-level access and above, including those without the unfiltered_html capability such as editors on multisite installations, to inject arbitrary scripts that will execute whenever a user accesses a page loading the plugin's custom scripts.

## References

- https://wpsec.com/vuln/WPSEC-2026-4323/
- https://plugins.svn.wordpress.org/contact-form-to-email/tags/1.3.77/
- https://wordpress.org/plugins/contact-form-to-email/

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

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.
