# Contact Form Email <= 1.3.76 - Authenticated (Editor+) Stored Cross-Site Scripting via CAPTCHA Settings

- **ID:** WPSEC-2026-4322
- **Plugin:** Contact Form Email (`contact-form-to-email`), https://wordpress.org/plugins/contact-form-to-email/
- **Affected versions:** all versions 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-4322/

## Description

The Contact Form Email plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the form's CAPTCHA image settings (such as cv_width, cv_height and cv_font) in all versions up to, and including, 1.3.76, due to insufficient output escaping when these values are placed into the CAPTCHA image src attribute on the public form. The values are only passed through sanitize_text_field(), which does not remove double quotes. This makes it possible for authenticated attackers with Editor-level access and above, in environments where they lack the unfiltered_html capability such as multisite, to inject arbitrary web scripts that execute whenever a user views a page containing the form.

## References

- https://wpsec.com/vuln/WPSEC-2026-4322/
- 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-4322/

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.
