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

Medium 5.5 CWE-79Fixed in 1.3.77
ID
WPSEC-2026-4322
Plugin
Contact Form Email (contact-form-to-email)
Affected
all versions before 1.3.77
Remediation
Update to 1.3.77 or later.
CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:N
Weakness
CWE-79
Usage
Plugin Low · Affected versions Low among sites WPSec scans, 2026-12-01
Attack surface
Contact Form Email on WPSec AttackSurface
Fix released
Published

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

Published by WPSec. Provided as is, without warranty. Corrections: contact us.

This advisory as JSON, OSV or Markdown · All advisories: JSON, OSV, RSS

License: CC BY 4.0