Conditional Fields for Contact Form 7 <= 2.8.6 - Authenticated (Editor+) Stored Cross-Site Scripting via Conditional Field Rules

Medium 4.4 CWE-79Fixed in 2.8.7
ID
WPSEC-2026-3169
Plugin
Conditional Fields for Contact Form 7 (cf7-conditional-fields)
Affected
from 2.0.1 before 2.8.7
Remediation
Update to 2.8.7 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 High · Affected versions High among sites WPSec scans, 2026-11-15
Attack surface
Conditional Fields for Contact Form 7 on WPSec AttackSurface
Fix released
Published

Description

The Conditional Fields for Contact Form 7 plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the conditional field rules shown in the text mode of the form editor's conditions panel in all versions up to, and including, 2.8.6 due to the serialized condition values being output without escaping inside a textarea. This makes it possible for authenticated attackers with editor-level access and above who can edit Contact Form 7 forms to inject arbitrary web scripts that execute whenever another user, such as an administrator, opens the affected form in the editor. This only affects installations where the unfiltered_html capability is restricted, such as multisite.

References

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

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

License: CC BY 4.0