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

Medium 6.4 CWE-79Fixed in 6.92
ID
WPSEC-2026-3265
Plugin
Anti-Spam, Spam FireWall by CleanTalk (cleantalk-spam-protect)
Affected
all versions before 6.92
Remediation
Update to 6.92 or later.
CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:L/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-17
Attack surface
Anti-Spam by CleanTalk on WPSec AttackSurface
Fix released
Published

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

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