# Contact Form <= 2.0.2 - Authenticated (Contributor+) Stored Cross-Site Scripting via field_group Shortcode

- **ID:** WPSEC-2026-3321
- **Plugin:** Contact Form 7 – Repeatable Fields (`cf7-repeatable-fields`), https://wordpress.org/plugins/cf7-repeatable-fields/
- **Affected versions:** all versions before 3.0.0
- **Fixed in:** 3.0.0 (Update to 3.0.0 or later.)
- **Severity:** Medium 6.4 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N)
- **Weakness:** CWE-79
- **Usage among sites WPSec scans:** plugin Medium, affected versions Medium (as of 2026-11-18)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/cf7-repeatable-fields
- **Fix released:** 2026-11-17
- **Published:** 2026-11-18
- **URL:** https://wpsec.com/vuln/WPSEC-2026-3321/

## Description

The Contact Form 7 – Repeatable Fields plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the group ID of the 'field_group' shortcode in all versions up to, and including, 2.0.2. This is due to insufficient input sanitization and output escaping on the group ID, which is printed unescaped into the name attribute of the hidden group-count input. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.

## References

- https://wpsec.com/vuln/WPSEC-2026-3321/
- https://plugins.svn.wordpress.org/cf7-repeatable-fields/tags/3.0.0/
- https://wordpress.org/plugins/cf7-repeatable-fields/

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

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.
