# Anti-Spam by CleanTalk <= 6.91 - Authenticated (Contributor+) Stored Cross-Site Scripting via Contact Encoder Shortcodes

- **ID:** WPSEC-2026-3265
- **Plugin:** Anti-Spam, Spam FireWall by CleanTalk (`cleantalk-spam-protect`), https://wordpress.org/plugins/cleantalk-spam-protect/
- **Affected versions:** all versions before 6.92
- **Fixed in:** 6.92 (Update to 6.92 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 High, affected versions High (as of 2026-11-17)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/cleantalk-spam-protect
- **Fix released:** 2026-11-16
- **Published:** 2026-11-17
- **URL:** https://wpsec.com/vuln/WPSEC-2026-3265/

## Description

The Anti-Spam, Spam FireWall by CleanTalk plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the [apbct_skip_encoding] and [apbct_encode_data] contact encoder shortcodes in all versions up to, and including, 6.91. This is due to the plugin swapping the shortcode content for a placeholder before other shortcodes run and later putting the original text back with only wp_kses_post, which leaves quotes in place. When the placeholder sits inside an attribute value of another shortcode, that shortcode writes it into an HTML attribute and the restored quotes break out of it. 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-3265/
- https://plugins.svn.wordpress.org/cleantalk-spam-protect/tags/6.92/
- https://wordpress.org/plugins/cleantalk-spam-protect/

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

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.
