Contact Form Widget <= 1.5.3 - Authenticated (Administrator+) Stored Cross-Site Scripting via Contact Form Widget Placeholder Settings

Medium 4.4 CWE-79Fixed in 1.5.4
ID
WPSEC-2026-4599
Plugin
Contact Form Widget – Responsive Contact Form, Query Form & Form Builder (new-contact-form-widget)
Affected
from 1.4.2 before 1.5.4
Remediation
Update to 1.5.4 or later.
CVSS 3.1
CVSS:3.1/AV:N/AC:H/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-04
Attack surface
Contact Form Widget on WPSec AttackSurface
Fix released
Published

Description

The Contact Form Widget plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the email, subject and message placeholder settings of the contact form widget in all versions up to, and including, 1.5.3. This is due to insufficient input sanitization and missing output escaping: the values are saved with sanitize_text_field, which keeps double quotes, and the sidebar widget then prints them into placeholder attributes without escaping. This makes it possible for authenticated attackers with administrator-level access to inject arbitrary web scripts that execute whenever a user visits a page showing the contact form widget. It only affects multi-site installations and installations where unfiltered_html has been disabled.

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